wibble  0.1.28
Public Member Functions
wibble::sys::Condition Class Reference

#include <mutex.h>

List of all members.

Public Member Functions

 Condition ()
 Condition (const Condition &con)
 ~Condition ()
void signal ()
 Wake up one process waiting on the condition.
void broadcast ()
 Wake up all processes waiting on the condition.
void wait (MutexLock &l)
 Wait on the condition, locking with l.
void wait (Mutex &l)
bool wait (MutexLock &l, const struct timespec &abstime)
 Wait on the condition, locking with l.

Constructor & Destructor Documentation

wibble::sys::Condition::Condition ( )
inline
wibble::sys::Condition::Condition ( const Condition con)
inline
wibble::sys::Condition::~Condition ( )
inline

Member Function Documentation

void wibble::sys::Condition::broadcast ( )
inline

Wake up all processes waiting on the condition.

void wibble::sys::Condition::signal ( )
inline

Wake up one process waiting on the condition.

void wibble::sys::Condition::wait ( MutexLock l)
inline

Wait on the condition, locking with l.

l is unlocked before waiting and locked again before returning.

References wibble::sys::MutexLockT< Mutex >::mutex.

void wibble::sys::Condition::wait ( Mutex l)
inline
bool wibble::sys::Condition::wait ( MutexLock l,
const struct timespec &  abstime 
)

Wait on the condition, locking with l.

l is unlocked before waiting and locked again before returning. If the time abstime is reached before the condition is signaled, then l is locked and the function returns false.

Returns:
true if the wait succeeded, or false if the timeout was reached before the condition is signaled.

References wibble::sys::MutexLockT< Mutex >::mutex.


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