CACAO
|
Dummy condition variable. More...
Public Member Functions | |
void | broadcast () |
Restarts all the threads that are waiting on the condition variable. More... | |
void | signal () |
Restarts one of the threads that are waiting on this condition variable. More... | |
void | timedwait (Mutex *mutex, const timespec *abstime) |
void | wait (Mutex *mutex) |
Waits for the condition variable. More... | |
void | wait (Mutex &mutex) |
Waits for the condition variable. More... | |
Condition () | |
Initialize a POSIX condition variable. More... | |
~Condition () | |
Destroys a POSIX condition variable. More... | |
void | broadcast () |
void | signal () |
void | timedwait (Mutex *mutex, const struct timespec *abstime) |
Waits on the condition variable, as wait() does, but it also bounds the duration of the wait. More... | |
void | wait (Mutex *mutex) |
void | wait (Mutex &mutex) |
Private Attributes | |
pthread_cond_t | _cond |
Dummy condition variable.
POSIX condition variable.
Definition at line 35 of file condition-none.hpp.
|
inline |
Initialize a POSIX condition variable.
Definition at line 67 of file condition-posix.hpp.
|
inline |
Destroys a POSIX condition variable.
Definition at line 80 of file condition-posix.hpp.
|
inline |
Restarts all the threads that are waiting on the condition variable.
Definition at line 37 of file condition-none.hpp.
void Condition::broadcast | ( | ) |
|
inline |
Restarts one of the threads that are waiting on this condition variable.
Definition at line 38 of file condition-none.hpp.
void Condition::signal | ( | ) |
Definition at line 39 of file condition-none.hpp.
Waits on the condition variable, as wait() does, but it also bounds the duration of the wait.
Definition at line 125 of file condition-posix.hpp.
Waits for the condition variable.
Definition at line 40 of file condition-none.hpp.
Waits for the condition variable.
Definition at line 41 of file condition-none.hpp.
|
private |
Definition at line 42 of file condition-posix.hpp.