|
LRAUV
revA
|
A simple pthread thread condition wrapper. More...
#include <Mutex.h>

Public Member Functions | |
| ThreadCondition (Mutex &mutex) | |
| int | wait () |
| int | timedWait (const Timespan &waitFor) |
| int | signal () |
| int | broadcast () |
Private Attributes | |
| pthread_cond_t | condition_ |
| Mutex & | mutex_ |
A simple pthread thread condition wrapper.
| ThreadCondition::ThreadCondition | ( | Mutex & | mutex | ) |
References condition_.
| int ThreadCondition::broadcast | ( | ) |
References condition_.
| int ThreadCondition::signal | ( | ) |
References condition_.
Referenced by PCaller::yieldToContained(), and PCaller::yieldToOwner().
| int ThreadCondition::timedWait | ( | const Timespan & | waitFor | ) |
References condition_, Mutex::mutex_, mutex_, and Timestamp::toTimespec().
| int ThreadCondition::wait | ( | ) |
References condition_, Mutex::mutex_, and mutex_.
Referenced by PCaller::containedWait(), and PCaller::ownerWait().
|
private |
Referenced by broadcast(), signal(), ThreadCondition(), timedWait(), and wait().
|
private |
Referenced by timedWait(), and wait().