Semaphore. More...
#include <fthread.h>
Public Member Functions | |
FSemaphore (int32 initialCount, const char8 *name) | |
FSemaphore constructor. | |
~FSemaphore () | |
FSemaphore destructor. | |
bool | verify () |
Verifies semaphore. | |
bool | acquire (int32 millisecondsTimeOut=-1) |
Acquires semaphore. | |
void | release (int32 count=1) |
Releases semaphore. |
Semaphore.
FSemaphore | ( | int32 | initialCount, | |
const char8 * | name | |||
) |
FSemaphore constructor.
initialCount | initial count for this semaphore | |
name | name of semaphore (unused !!!) |
~FSemaphore | ( | ) |
FSemaphore destructor.
bool verify | ( | ) |
Verifies semaphore.
bool acquire | ( | int32 | millisecondsTimeOut = -1 |
) |
Acquires semaphore.
timeOut | time out, -1 means infinite, 0 means never locks, ms |
void release | ( | int32 | count = 1 |
) |
Releases semaphore.
count | how many? |