Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify event processing loop exit condition somewhat
Instead of having potentially two event processors running at once, but only at different parts of the loop, we simplify the event processing loop a bit by ensuring only one event processor can run at once until the first is ready to exit. Note that we still have to ensure we unset the mutual exclusion flag inside the `pending_events` lock as otherwise we can race and end up with two event processors called and both return without every pending event having been processed.
- Loading branch information