16 m_ShouldContinue(false)
27 std::unique_lock<std::mutex> Lock(
m_Mutex);
39 auto dst = std::chrono::system_clock::now() + std::chrono::milliseconds(a_TimeoutMSec);
42 std::unique_lock<std::mutex> Lock(
m_Mutex);
56 std::unique_lock<std::mutex> Lock(
m_Mutex);
69 std::unique_lock<std::mutex> Lock(
m_Mutex);
std::condition_variable m_CondVar
The condition variable used as the Event.
void Set(void)
Sets the event - releases one thread that has been waiting in Wait().
std::mutex m_Mutex
Mutex protecting m_ShouldContinue from multithreaded access.
bool m_ShouldContinue
Used for checking for spurious wakeups.
void Wait(void)
Waits until the event has been set.
void SetAll(void)
Sets the event - releases all threads that have been waiting in Wait().