From 355ee15039316429197f07515126c2d2b8c49af4 Mon Sep 17 00:00:00 2001 From: Scott Barron Date: Sat, 6 Aug 2022 17:21:39 -0400 Subject: [PATCH] unlock the event queue before sleeping --- src/managers/EventManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index 22299a01..2b2598e1 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -80,8 +80,8 @@ void CEventManager::startThread() { eventQueueMutex.lock(); if (m_dQueuedEvents.empty()){ // if queue empty, sleep and ignore - std::this_thread::sleep_for(std::chrono::milliseconds(1)); eventQueueMutex.unlock(); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; }