Honeycomb
0.1
Component-Model Framework
|
Method to synchronize threads. Condition variables eliminate the need for repeated polling to check the value of some data. More...
#include <Condition.h>
Public Member Functions | |
void | signal () |
Signal one waiting thread to resume, resumed thread attempts to acquire the lock. More... | |
void | broadcast () |
Signal all waiting threads to resume, all resumed threads attempt to acquire the lock. More... | |
void | wait (UniqueLock< Mutex > &lock) |
Release lock and wait until thread is signaled. More... | |
template<class Rep , class Period > | |
bool | wait (UniqueLock< Mutex > &lock, Duration< Rep, Period > time) |
Release lock and wait until thread is signaled or until an amount of time has passed. Returns true if signaled, false if timed out. More... | |
template<class Clock , class Dur > | |
bool | wait (UniqueLock< Mutex > &lock, TimePoint< Clock, Dur > time) |
Release lock and wait until thread is signaled or until a certain time. Returns true if signaled, false if timed out. More... | |
Method to synchronize threads. Condition variables eliminate the need for repeated polling to check the value of some data.
The mutex must be locked before calling any methods on the condition.
This is the default condition class that thinly wraps a platform condition. The default condition is fast but can only use a basic mutex.
|
inline |
Signal all waiting threads to resume, all resumed threads attempt to acquire the lock.
|
inline |
Signal one waiting thread to resume, resumed thread attempts to acquire the lock.
|
inline |
Release lock and wait until thread is signaled.
|
inline |
Release lock and wait until thread is signaled or until an amount of time has passed. Returns true if signaled, false if timed out.
|
inline |
Release lock and wait until thread is signaled or until a certain time. Returns true if signaled, false if timed out.