event/Loop: set "again" in AddDefer() only if HAVE_THREADED_EVENT_LOOP
Only AddDefer()/AddIdle() calls from within DeferEvents are relevant.
This commit is contained in:
parent
d0d095cbcd
commit
a57cf443ed
@ -188,7 +188,12 @@ EventLoop::AddDefer(DeferEvent &e) noexcept
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
defer.push_back(e);
|
defer.push_back(e);
|
||||||
|
|
||||||
|
#ifdef HAVE_THREADED_EVENT_LOOP
|
||||||
|
/* setting this flag here is only relevant if we've been
|
||||||
|
called by a DeferEvent */
|
||||||
again = true;
|
again = true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -197,7 +202,12 @@ EventLoop::AddIdle(DeferEvent &e) noexcept
|
|||||||
assert(IsInside());
|
assert(IsInside());
|
||||||
|
|
||||||
idle.push_back(e);
|
idle.push_back(e);
|
||||||
|
|
||||||
|
#ifdef HAVE_THREADED_EVENT_LOOP
|
||||||
|
/* setting this flag here is only relevant if we've been
|
||||||
|
called by a DeferEvent */
|
||||||
again = true;
|
again = true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user