fsf::CCondition Class Reference

Condition variable class. More...

#include <Fsf.h>

List of all members.

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.


Detailed Description

Condition variable class.

Encapsulates PTHREAD condition variable


Constructor & Destructor Documentation

fsf::CCondition::CCondition (  )  [inline]

The condition variable.

Default constructor

fsf::CCondition::~CCondition (  )  [inline]


Member Function Documentation

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.


Member Data Documentation

pthread_cond_t fsf::CCondition::m_cond [protected]

The mutex.

pthread_mutex_t fsf::CCondition::m_mutex [protected]


The documentation for this class was generated from the following file:

Generated on Thu Oct 21 11:47:37 2010 for MFSM by  doxygen 1.5.9