Semaphore. More...
#include <deSemaphore.h>
Public Member Functions | |
Constructors and Destructors | |
| deSemaphore () | |
| Creates a semaphore. | |
| ~deSemaphore () | |
| Cleans the semaphore. | |
Management | |
| void | Wait () |
| Puts the thread to sleep waiting for the semaphore to get signaled. | |
| void | Signal () |
| Signals this semaphore waking up one or more threads. | |
| void | SignalAll () |
| Signals this semaphore waking up all threads. | |
Semaphore.
Provides semaphore access support using a thin wrapper around the operating system specific threading semaphore.
| deSemaphore::deSemaphore | ( | ) |
Creates a semaphore.
| deSemaphore::~deSemaphore | ( | ) |
Cleans the semaphore.
| void deSemaphore::Signal | ( | ) |
Signals this semaphore waking up one or more threads.
If no thread is waiting this call does nothing.
| void deSemaphore::SignalAll | ( | ) |
Signals this semaphore waking up all threads.
If no thread is waiting this call does nothing.
| void deSemaphore::Wait | ( | ) |
Puts the thread to sleep waiting for the semaphore to get signaled.
Returns once the signal arrives and this thread is chosen to wake up.
1.7.2