wibble 0.1.28
|
#include <mutex.h>
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. |
wibble::sys::Condition::Condition | ( | ) | [inline] |
wibble::sys::Condition::Condition | ( | const Condition & | con | ) | [inline] |
wibble::sys::Condition::~Condition | ( | ) | [inline] |
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 | ( | Mutex & | l | ) | [inline] |
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.
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.
References wibble::sys::MutexLockT< Mutex >::mutex.