#include <Fsf.h>
Public Member Functions | |
CCondition () | |
The condition variable. | |
~CCondition () | |
void | lock () |
Locks condition variable. | |
void | unlock () |
Unlocks condition variable. | |
void | wait () |
Waits on condition variable. | |
void | timedWait (const struct timespec *timeout) |
Waits oon condition variable with timeout. | |
void | signal () |
Signals condition variable. | |
void | broadcast () |
Broadcasts condition variable. | |
Protected Attributes | |
pthread_mutex_t | m_mutex |
pthread_cond_t | m_cond |
The mutex. |
Encapsulates PTHREAD condition variable
fsf::CCondition::CCondition | ( | ) | [inline] |
The condition variable.
Default constructor
fsf::CCondition::~CCondition | ( | ) | [inline] |
void fsf::CCondition::broadcast | ( | ) | [inline] |
Broadcasts condition variable.
void fsf::CCondition::lock | ( | ) | [inline] |
Locks condition variable.
void fsf::CCondition::signal | ( | ) | [inline] |
Signals condition variable.
void fsf::CCondition::timedWait | ( | const struct timespec * | timeout | ) | [inline] |
Waits oon condition variable with timeout.
void fsf::CCondition::unlock | ( | ) | [inline] |
Unlocks condition variable.
void fsf::CCondition::wait | ( | ) | [inline] |
Waits on condition variable.
pthread_cond_t fsf::CCondition::m_cond [protected] |
The mutex.
pthread_mutex_t fsf::CCondition::m_mutex [protected] |