event/Loop: read the "again" flag while holding mutex
This commit is contained in:
parent
51464b4317
commit
3c29aa6271
@ -179,9 +179,10 @@ EventLoop::Run()
|
|||||||
mutex.lock();
|
mutex.lock();
|
||||||
HandleDeferred();
|
HandleDeferred();
|
||||||
busy = false;
|
busy = false;
|
||||||
|
const bool _again = again;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
|
||||||
if (again)
|
if (_again)
|
||||||
/* re-evaluate timers because one of the
|
/* re-evaluate timers because one of the
|
||||||
IdleMonitors may have added a new
|
IdleMonitors may have added a new
|
||||||
timeout */
|
timeout */
|
||||||
|
Loading…
Reference in New Issue
Block a user