My Project
UDK 3.2.7 C/C++ API Reference
|
#include <sal/types.h>
Go to the source code of this file.
Typedefs | |
typedef void * | oslSemaphore |
Functions | |
SAL_DLLPUBLIC oslSemaphore | osl_createSemaphore (sal_uInt32 initialCount) |
Creates a semaphore. | |
SAL_DLLPUBLIC void | osl_destroySemaphore (oslSemaphore Semaphore) |
Release the OS-structures and free semaphore data-structure. | |
SAL_DLLPUBLIC sal_Bool | osl_acquireSemaphore (oslSemaphore Semaphore) |
acquire() decreases the count. | |
SAL_DLLPUBLIC sal_Bool | osl_tryToAcquireSemaphore (oslSemaphore Semaphore) |
tryToAcquire() tries to decreases the count. | |
SAL_DLLPUBLIC sal_Bool | osl_releaseSemaphore (oslSemaphore Semaphore) |
release() increases the count. |
typedef void* oslSemaphore |
SAL_DLLPUBLIC sal_Bool osl_acquireSemaphore | ( | oslSemaphore | Semaphore | ) |
acquire() decreases the count.
It will block if it tries to decrease below zero.
SAL_DLLPUBLIC oslSemaphore osl_createSemaphore | ( | sal_uInt32 | initialCount | ) |
Creates a semaphore.
initialCount | denotes the starting value the semaphore. If you set it to zero, the first acquire() blocks. Otherwise InitialCount acquire()s are immedeatly successfull. |
SAL_DLLPUBLIC void osl_destroySemaphore | ( | oslSemaphore | Semaphore | ) |
Release the OS-structures and free semaphore data-structure.
SAL_DLLPUBLIC sal_Bool osl_releaseSemaphore | ( | oslSemaphore | Semaphore | ) |
release() increases the count.
SAL_DLLPUBLIC sal_Bool osl_tryToAcquireSemaphore | ( | oslSemaphore | Semaphore | ) |
tryToAcquire() tries to decreases the count.
It will return with False if it would decrease the count below zero. (When acquire() would block.) If it could successfully decrease the count, it will return True.