#include <mutex.h>
List of all members.
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 |
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: