FreeRDP
|
#include <winpr/config.h>
#include <winpr/debug.h>
#include <winpr/synch.h>
#include "synch.h"
#include <errno.h>
#include "../handle/handle.h"
#include "../log.h"
Macros | |
#define | TAG WINPR_TAG("synch.semaphore") |
Functions | |
static BOOL | SemaphoreCloseHandle (HANDLE handle) |
static BOOL | SemaphoreIsHandled (HANDLE handle) |
static int | SemaphoreGetFd (HANDLE handle) |
static DWORD | SemaphoreCleanupHandle (HANDLE handle) |
HANDLE | CreateSemaphoreW (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCWSTR lpName) |
HANDLE | CreateSemaphoreA (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName) |
HANDLE | OpenSemaphoreW (DWORD dwDesiredAccess, BOOL bInheritHandle, LPCWSTR lpName) |
HANDLE | OpenSemaphoreA (DWORD dwDesiredAccess, BOOL bInheritHandle, LPCSTR lpName) |
BOOL | ReleaseSemaphore (HANDLE hSemaphore, LONG lReleaseCount, LPLONG lpPreviousCount) |
Variables | |
static HANDLE_OPS | ops |
#define TAG WINPR_TAG("synch.semaphore") |
WinPR: Windows Portable Runtime Synchronization Functions
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
HANDLE CreateSemaphoreA | ( | LPSECURITY_ATTRIBUTES | lpSemaphoreAttributes, |
LONG | lInitialCount, | ||
LONG | lMaximumCount, | ||
LPCSTR | lpName | ||
) |
HANDLE CreateSemaphoreW | ( | LPSECURITY_ATTRIBUTES | lpSemaphoreAttributes, |
LONG | lInitialCount, | ||
LONG | lMaximumCount, | ||
LPCWSTR | lpName | ||
) |
HANDLE OpenSemaphoreA | ( | DWORD | dwDesiredAccess, |
BOOL | bInheritHandle, | ||
LPCSTR | lpName | ||
) |
HANDLE OpenSemaphoreW | ( | DWORD | dwDesiredAccess, |
BOOL | bInheritHandle, | ||
LPCWSTR | lpName | ||
) |
BOOL ReleaseSemaphore | ( | HANDLE | hSemaphore, |
LONG | lReleaseCount, | ||
LPLONG | lpPreviousCount | ||
) |
|
static |
|
static |
|
static |
|
static |