#include <FUSemaphore.h>
Inheritance diagram for FUSemaphore:
Public Member Functions | |
FUSemaphore (uint32 initialValue, uint32 maximumValue) | |
Constructor. | |
~FUSemaphore () | |
Destructor. | |
void | Up () |
Increments the value of the semaphore. | |
void | Down () |
Decrements the value of the semaphore. |
Currently only supported for WIN32.
|
Constructor.
|
|
Decrements the value of the semaphore. The value of the semaphore never drops below 0. If the current value is 0, and this method is called, then this method blocks until it is possible to decrement it and then does so. This is made possible when another thread calls Up. If more than one thread is blocked, and Up is called, any one of the waiting threads may be unblocked. |
|
Increments the value of the semaphore. Do not increment it above the maximum value set in the constructor. No check is made. |