event/Loop: move the "again" check out of the mutex scope
This commit is contained in:
parent
790e540c19
commit
4e88f95f94
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user