OpenThreads
|
This class provides an object-oriented thread condition interface. More...
Public Member Functions | |
Condition () | |
Constructor. | |
virtual | ~Condition () |
Destructor. | |
virtual int | wait (Mutex *mutex) |
Wait on a mutex. | |
virtual int | wait (Mutex *mutex, unsigned long int ms) |
Wait on a mutex for a given amount of time (ms) | |
virtual int | signal () |
Signal a SINGLE thread to wake if it's waiting. | |
virtual int | broadcast () |
Wake all threads waiting on this condition. |
This class provides an object-oriented thread condition interface.
OpenThreads::Condition::Condition | ( | ) |
Constructor.
virtual OpenThreads::Condition::~Condition | ( | ) | [virtual] |
Destructor.
virtual int OpenThreads::Condition::broadcast | ( | ) | [virtual] |
Wake all threads waiting on this condition.
Referenced by OpenThreads::BlockCount::completed(), OpenThreads::BlockCount::release(), OpenThreads::Block::release(), and OpenThreads::BlockCount::reset().
virtual int OpenThreads::Condition::signal | ( | ) | [virtual] |
Signal a SINGLE thread to wake if it's waiting.
virtual int OpenThreads::Condition::wait | ( | Mutex * | mutex | ) | [virtual] |
Wait on a mutex.
Referenced by OpenThreads::BlockCount::block(), and OpenThreads::Block::block().
virtual int OpenThreads::Condition::wait | ( | Mutex * | mutex, |
unsigned long int | ms | ||
) | [virtual] |
Wait on a mutex for a given amount of time (ms)
![]() | Generated at Sun Jan 8 2012 13:22:10 for the OpenThreads by doxygen 1.7.4. |