#include <Fsf.h>
Public Member Functions | |
CSemaphore () | |
The semaphore. | |
~CSemaphore () | |
Destructor. | |
void | wait () |
Waits on semaphore. | |
void | tryWait () |
Try-waits on semaphore. | |
void | post () |
Posts to semaphore. | |
Protected Attributes | |
sem_t | m_semaphore |
Encapsulates PTHREAD semaphore
fsf::CSemaphore::CSemaphore | ( | ) | [inline] |
The semaphore.
Default constructor
fsf::CSemaphore::~CSemaphore | ( | ) | [inline] |
Destructor.
void fsf::CSemaphore::post | ( | ) | [inline] |
Posts to semaphore.
void fsf::CSemaphore::tryWait | ( | ) | [inline] |
Try-waits on semaphore.
void fsf::CSemaphore::wait | ( | ) | [inline] |
Waits on semaphore.
sem_t fsf::CSemaphore::m_semaphore [protected] |