#include <semaphore.h>
Public Member Functions | |
| Semaphore (int val=0) | |
| ~Semaphore () | |
| DISABLE_CLASS_COPY (Semaphore) | |
| void | post (unsigned int num=1) |
| void | wait () |
| bool | wait (unsigned int time_ms) |
Private Attributes | |
| sem_t | semaphore |
| Semaphore::Semaphore | ( | int | val = 0 | ) |
References semaphore, and UNUSED.
Referenced by DISABLE_CLASS_COPY().
| Semaphore::DISABLE_CLASS_COPY | ( | Semaphore | ) |
| void Semaphore::post | ( | unsigned int | num = 1 | ) |
References semaphore, and UNUSED.
Referenced by TestThreading::testAtomicSemaphoreThread().
| bool Semaphore::wait | ( | unsigned int | time_ms | ) |
References semaphore.
|
private |
Referenced by Semaphore(), ~Semaphore(), DISABLE_CLASS_COPY(), post(), wait(), and wait().