• Max Kellermann's avatar
    event/Loop: try to avoid the WakeFD when adding DeferredMonitor · e599b864
    Max Kellermann authored
    Add a flag that indicates whether the EventLoop is currently "busy".
    As long as that flag is set, it does not need to be woken up - we can
    simply add the DeferredMonitor to the list, and it will be caught by
    EventLoop very soon.  This eliminates nearly all of the
    DeferredMonitor overhead when compared to IdleMonitor, rendering
    IdleMonitor mostly obsolete.
    e599b864
Loop.hxx 4.54 KB