36 bool Wait(
unsigned a_TimeoutMSec);
void Wait(void)
Waits until the event has been set.
bool m_ShouldContinue
Used for checking for spurious wakeups.
std::mutex m_Mutex
Mutex protecting m_ShouldContinue from multithreaded access.
void SetAll(void)
Sets the event - releases all threads that have been waiting in Wait().
void Set(void)
Sets the event - releases one thread that has been waiting in Wait().
std::condition_variable m_CondVar
The condition variable used as the Event.