Commit 880d88e
committed
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.1 parent 9dfe42c commit 880d88e
1 file changed
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1718 | 1718 | | |
1719 | 1719 | | |
1720 | 1720 | | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1729 | 1726 | | |
1730 | 1727 | | |
1731 | 1728 | | |
| |||
1754 | 1751 | | |
1755 | 1752 | | |
1756 | 1753 | | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
| 1754 | + | |
1764 | 1755 | | |
1765 | 1756 | | |
1766 | 1757 | | |
1767 | 1758 | | |
1768 | 1759 | | |
1769 | 1760 | | |
1770 | | - | |
1771 | | - | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
1772 | 1769 | | |
1773 | 1770 | | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
| |||
0 commit comments