This class provides a counting semaphore API.
More...
#include <OS.hxx>
|
| | OSSem (unsigned int value=0) |
| | Initialize a Semaphore.
|
| |
| void | post () |
| | Post (increment) a semaphore.
|
| |
| void | wait () |
| | Wait on (decrement) a semaphore.
|
| |
|
|
| DISALLOW_COPY_AND_ASSIGN (OSSem) |
| |
|
| os_sem_t | handle |
| | Private semaphore handle.
|
| |
This class provides a counting semaphore API.
Definition at line 242 of file OS.hxx.
◆ OSSem()
| OSSem::OSSem |
( |
unsigned int |
value = 0 | ) |
|
|
inline |
Initialize a Semaphore.
- Parameters
-
Definition at line 248 of file OS.hxx.
◆ ~OSSem()
◆ post()
Post (increment) a semaphore.
Definition at line 260 of file OS.hxx.
◆ wait()
Wait on (decrement) a semaphore.
Definition at line 279 of file OS.hxx.
◆ handle
Private semaphore handle.
Definition at line 299 of file OS.hxx.
The documentation for this class was generated from the following file: