25 #include "WCondition.h"
40 std::unique_lock<std::shared_mutex> lock(
m_mutex );
boost::signals2::connection subscribeSignal(t_ConditionNotifierType notifier) const
Subscribes a specified function to be notified on condition change.
boost::function0< void > t_ConditionNotifierType
Type used for signalling condition changes.
t_ConditionSignalType signal_ConditionFired
Signal getting fired whenever the condition fires.
WCondition()
Default constructor.
boost::condition_variable_any m_condition
The condition.
virtual void notify()
Notifies all waiting threads.
virtual ~WCondition()
Destructor.
std::shared_mutex m_mutex
The mutex used for the condition.
virtual void wait() const
Wait for the condition.