File condition_variable.hpp¶
All templated types in this namespaces are elementary types: int, double, float, char*, …
Typedefs
- #include <condition_variable.hpp>
Public Functions
A condition variable shared over the memory The condition variable is cleaned from the memory on destruction if clean_memory_on_destruction is set to true.
notify_all is notifying all condition variables with the same mutex
notify_one notifies one condition variable with the same mutex
timed_wait wait a notify during a certain certain time and then wake up
- Parameters:
wait_duration – in microsecond
- Returns:
true: the condition variable has been notified, false otherwize
wait waits until another thread notifies this object
Public Static Functions
Private Members
condition_id_ is the condition variable name in the shared memory
if true (the default), clean the shared memory of the hosted mutex and condition.
condition_variable_ is the boost condition variable that is used
mutex_id_ is the mutex name in the shared memory