DescriptionRe-land: Add missing check for quitting from MessagePumpLibevent
If a MessagePumpLibevent has no tasks to run, it will call libevent's
event_base_loop with EVLOOP_ONCE. However, it may turn out that the
event that finally runs actually quits the MessageLoop. In this case,
there is an off-by-one error where MessagePumpLibevent will call the
MessageLoop's DoWork function once before realizing that it was actually
asked to quit. Add a check to prevent this from happening.
BUG=473693
Committed: https://crrev.com/ee9b754ba442a4c77c67f56caf465b3d9d13d97f
Cr-Commit-Position: refs/heads/master@{#323834}
Patch Set 1 : Original CL #Patch Set 2 : Use WaitableEventWatcher #
Messages
Total messages: 7 (2 generated)
|