A condition variable
This is a drop-in replacement of std::condition_variable
and should respect the same semantic.
But we currently use (only) double for both durations and timestamp timeouts.
|
| ConditionVariable (ConditionVariable const &)=delete |
|
ConditionVariable & | operator= (ConditionVariable const &)=delete |
|
ConditionVariablePtr | createConditionVariable () |
|
void | wait (MutexPtr lock) |
|
void | wait (std::unique_lock< Mutex > &lock) |
|
template<class P > |
void | wait (std::unique_lock< Mutex > &lock, P pred) |
|
std::cv_status | wait_until (std::unique_lock< Mutex > &lock, double timeout_time) |
|
std::cv_status | wait_for (std::unique_lock< Mutex > &lock, double duration) |
|
template<class P > |
bool | wait_until (std::unique_lock< Mutex > &lock, double timeout_time, P pred) |
|
template<class P > |
bool | wait_for (std::unique_lock< Mutex > &lock, double duration, P pred) |
|
template<class Rep , class Period , class P > |
bool | wait_for (std::unique_lock< Mutex > &lock, std::chrono::duration< Rep, Period > duration, P pred) |
|
template<class Rep , class Period > |
std::cv_status | wait_for (std::unique_lock< Mutex > &lock, std::chrono::duration< Rep, Period > duration) |
|
template<class Duration > |
std::cv_status | wait_until (std::unique_lock< Mutex > &lock, const SimulationTimePoint< Duration > &timeout_time) |
|
template<class Duration , class P > |
bool | wait_until (std::unique_lock< Mutex > &lock, const SimulationTimePoint< Duration > &timeout_time, P pred) |
|
void | notify_one () |
|
void | notify_all () |
|