25 #ifndef WCONDITIONONESHOT_H
26 #define WCONDITIONONESHOT_H
29 #include <shared_mutex>
31 #include <boost/thread.hpp>
33 #include "WCondition.h"
58 virtual void wait()
const;
Implements a WCondition, but can be fired only ONCE.
virtual void notify()
Notifies all waiting threads.
virtual void wait() const
Wait for the condition.
friend class WConditionOneShot_test
Access for test class.
WConditionOneShot()
Default constructor.
virtual ~WConditionOneShot()
Destructor.
std::atomic< bool > m_isDone
Atomic bool whether this conditon has been done or not.
Class to encapsulate boost::condition_variable_any.