Wrapper around posix sem_t semaphore. More...
#include <Util/Semaphore.H>
Public Member Functions | |
PosixSemaphore (unsigned int initvalue=0) | |
bool | post () |
Returns true on success. | |
bool | trywait () |
bool | wait () |
Returns true on success. |
Wrapper around posix sem_t semaphore.
Definition at line 57 of file Semaphore.H.
bool PosixSemaphore::post | ( | ) | [inline] |
Returns true on success.
Definition at line 73 of file Semaphore.H.
Referenced by JobWithSemaphore::markFinished(), DisplayController::pause(), SharedBuffer< T >::pop(), SharedBuffer< T >::push(), and SharedBuffer< T >::stopWaiting().
bool PosixSemaphore::wait | ( | ) | [inline] |
Returns true on success.
Definition at line 106 of file Semaphore.H.
Referenced by SharedBuffer< T >::pop(), SharedBuffer< T >::push(), DisplayController::run(), and JobWithSemaphore::wait().