simple wrapper around semCLib for easier transition to linux
More...
#include <CountingSemaphore.h>
simple wrapper around semCLib for easier transition to linux
- Author
- Varun Parthasarathy
CountingSemaphore::CountingSemaphore |
( |
UINT32 |
initialcount | ) |
|
|
explicit |
- Parameters
-
initialcount | the capacity of the semaphore |
void CountingSemaphore::Flush |
( |
| ) |
|
void CountingSemaphore::Give |
( |
| ) |
|
gives the semaphore, increments the count by 1
bool CountingSemaphore::IsEmpty |
( |
| ) |
|
void CountingSemaphore::Take |
( |
| ) |
|
waits forever for an available semaphore
void CountingSemaphore::Take |
( |
INT32 |
timeout | ) |
|
waits until the end of the timeout for an available semaphore
The documentation for this class was generated from the following files: