25 #ifndef WCONDITIONONESHOT_H
26 #define WCONDITIONONESHOT_H
28 #include <boost/thread.hpp>
30 #include "WCondition.h"
42 friend class WConditionOneShot_test;
57 virtual void wait()
const;
68 boost::unique_lock<boost::shared_mutex>
m_lock;
73 #endif // WCONDITIONONESHOT_H
Implements a WCondition, but can be fired only ONCE.
virtual void notify()
Notifies all waiting threads.
boost::unique_lock< boost::shared_mutex > m_lock
Locked as long the condition was not fired.
WConditionOneShot()
Default constructor.
Class to encapsulate boost::condition_variable_any.
virtual ~WConditionOneShot()
Destructor.
virtual void wait() const
Wait for the condition.