logic: added sleep time of 25ms to messaging loop
This commit is contained in:
@@ -240,6 +240,9 @@ private:
|
||||
void waitForThread() const
|
||||
{
|
||||
static const int THREAD_WAIT_TIME_MS = 5;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(THREAD_WAIT_TIME_MS));
|
||||
while (MessageQueue::getInstance()->hasMessagesQueued())
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(THREAD_WAIT_TIME_MS));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user