CACAO
Public Member Functions | Private Attributes
Condition Class Reference

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
 

Detailed Description

Dummy condition variable.

POSIX condition variable.

Definition at line 35 of file condition-none.hpp.

Constructor & Destructor Documentation

Condition::Condition ( )
inline

Initialize a POSIX condition variable.

Definition at line 67 of file condition-posix.hpp.

Condition::~Condition ( )
inline

Destroys a POSIX condition variable.

Definition at line 80 of file condition-posix.hpp.

Member Function Documentation

void Condition::broadcast ( )
inline

Restarts all the threads that are waiting on the condition variable.

Definition at line 37 of file condition-none.hpp.

void Condition::broadcast ( )
void Condition::signal ( )
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 ( )
void Condition::timedwait ( Mutex mutex,
const timespec *  abstime 
)
inline

Definition at line 39 of file condition-none.hpp.

void Condition::timedwait ( Mutex mutex,
const struct timespec *  abstime 
)
inline

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.

void Condition::wait ( Mutex mutex)
inline

Waits for the condition variable.

Definition at line 40 of file condition-none.hpp.

void Condition::wait ( Mutex mutex)
inline

Waits for the condition variable.

Definition at line 41 of file condition-none.hpp.

void Condition::wait ( Mutex mutex)
void Condition::wait ( Mutex mutex)

Field Documentation

pthread_cond_t Condition::_cond
private

Definition at line 42 of file condition-posix.hpp.


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