n2nc::sync::Semaphore Class Reference
This class implements the semaphore paradigm.
More...
#include <semaphore.h>
List of all members.
|
Public Member Functions |
|
| Semaphore (uint init_value=0) |
|
int | getValue () |
|
bool | tryWait () |
|
bool | wait () |
|
bool | post () |
Detailed Description
This class implements the semaphore paradigm.
- Author:
- fabsoft <fabsoft@gmail.com>
- Examples:
-
threads_ex.cpp.
Definition at line 14 of file semaphore.h.
The documentation for this class was generated from the following files: