PthreadCondition Class Reference

Internal pthread condition adaption class. More...

#include <pthreadcondition.h>

List of all members.

Public Member Functions

 PthreadCondition (PthreadLock &l) throw ()
 Condition constructor.
void wait () throw ()
 Waits for this condition to be notified by notify() or notifyall().
void notify () throw ()
 Wakes up one thread wait()ing for this condition.
void notifyall () throw ()
 Wakes up all threads wait()ing for this condition.


Detailed Description

Internal pthread condition adaption class.

This really contains a pthread_mutex_t and a reference to a PthreadLock.


Constructor & Destructor Documentation

PthreadCondition::PthreadCondition ( PthreadLock l  )  throw ()

Condition constructor.

Parameters:
l is the lock to be unlocked while waiting


Member Function Documentation

void PthreadCondition::wait (  )  throw ()

Waits for this condition to be notified by notify() or notifyall().

The lock passed to the constructor is released when invoking wait() and acquired before returning from it.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1