Commit 4e88f95f authored by Max Kellermann's avatar Max Kellermann

event/Loop: move the "again" check out of the mutex scope

parent 790e540c
...@@ -330,15 +330,14 @@ EventLoop::Run() noexcept ...@@ -330,15 +330,14 @@ EventLoop::Run() noexcept
const std::lock_guard<Mutex> lock(mutex); const std::lock_guard<Mutex> lock(mutex);
HandleInject(); HandleInject();
busy = false; busy = false;
if (again)
/* re-evaluate timers because one of
the IdleEvents may have added a
new timeout */
continue;
} }
#endif #endif
if (again)
/* re-evaluate timers because one of the
DeferEvents may have added a new timeout */
continue;
/* wait for new event */ /* wait for new event */
Wait(timeout); Wait(timeout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment