15 m_ShouldContinue(false)
26 std::unique_lock<std::mutex> Lock(
m_Mutex);
38 auto dst = std::chrono::system_clock::now() + std::chrono::milliseconds(a_TimeoutMSec);
41 std::unique_lock<std::mutex> Lock(
m_Mutex);
55 std::unique_lock<std::mutex> Lock(
m_Mutex);
68 std::unique_lock<std::mutex> Lock(
m_Mutex);
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.