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