|
libcosmos
Linux C++ System Programming Library
|
An aggregate of a Mutex and a Condition coupled together for typical Condition usage. More...
#include <Condition.hxx>
Inheritance diagram for cosmos::ConditionMutex:Additional Inherited Members | |
Public Types inherited from cosmos::Condition | |
| enum class | WaitTimedRes { TIMED_OUT , SIGNALED } |
| Strong type to express waitTimed() results. More... | |
Public Member Functions inherited from cosmos::Mutex | |
| Mutex () | |
| Create a non-recursive Mutex. | |
| void | lock () const |
| void | unlock () const |
Public Member Functions inherited from cosmos::Condition | |
| Condition (Mutex &lock) | |
Create a condition coupled with the given lock. | |
| void | wait () const |
| Wait for the Condition to be signaled. | |
| WaitTimedRes | waitTimed (const MonotonicTime ts) const |
| Wait for the Condition to be signaled with timeout. | |
| void | signal () |
| Signal and unblock one waiting thread. | |
| void | broadcast () |
| Signal and unblock all waiting threads. | |
| Mutex & | mutex () |
Protected Attributes inherited from cosmos::Mutex | |
| pthread_mutex_t | m_pmutex |
Protected Attributes inherited from cosmos::Condition | |
| pthread_cond_t | m_pcond |
| Mutex & | m_lock |
An aggregate of a Mutex and a Condition coupled together for typical Condition usage.
Definition at line 142 of file Condition.hxx.
|
inline |
Definition at line 147 of file Condition.hxx.