#include <semaphore.h>
|
PlatformSemaphore * | mData |
|
Create a semaphore. initialCount defaults to 1.
Delete a semaphore, ignoring it's count.
bool acquire |
( |
bool |
block = true , |
|
|
S32 |
timeoutMS = -1 |
|
) |
| |
Acquire the semaphore, decrementing its count. if the initial count is less than 1, block until it goes above 1, then acquire. Returns true if the semaphore was acquired, false if the semaphore could not be acquired and block was false.
static bool acquireSemaphore |
( |
void * |
semaphore, |
|
|
bool |
block = true |
|
) |
| |
|
inlinestatic |
static void* createSemaphore |
( |
U32 |
initialCount = 1 | ) |
|
|
inlinestatic |
static void destroySemaphore |
( |
void * |
semaphore | ) |
|
|
inlinestatic |
Release the semaphore, incrementing its count. Never blocks.
static void releaseSemaphore |
( |
void * |
semaphore | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file:
- platform/threads/semaphore.h