|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Condition variable. More...
#include <cond.h>
Public Member Functions | |
| Cond (const Mutex &mutex) | |
| Initialize. | |
| ~Cond () | |
| Destroy. | |
| ROC_ATTR_NODISCARD bool | timed_wait (nanoseconds_t timeout) const |
| Wait with timeout. | |
| void | wait () const |
| Wait. | |
| void | signal () const |
| Wake up one pending waits. | |
| void | broadcast () const |
| Wake up all pending waits. | |
| roc::core::Cond::Cond | ( | const Mutex & | mutex | ) |
Initialize.
| roc::core::Cond::~Cond | ( | ) |
Destroy.
| void roc::core::Cond::broadcast | ( | ) | const |
Wake up all pending waits.
| void roc::core::Cond::signal | ( | ) | const |
Wake up one pending waits.
| ROC_ATTR_NODISCARD bool roc::core::Cond::timed_wait | ( | nanoseconds_t | timeout | ) | const |
Wait with timeout.
| void roc::core::Cond::wait | ( | ) | const |
Wait.