Edit

kc3-lang/libevent

Branch :

  • Browse

    Commit

  • Author : Nate Rosenblum
    Date : 2013-03-05 11:29:33
    Hash : 9443868d
    Message : Double-check next timeout when adding events When resuming the system from a suspended state, the ev_timeout field of a scheduled timer event may be in the past. This leads to unexpected behavior when scheduling a short-duration timer event immediately after returning from suspension, because the new event does not land on top of the timeout minheap and so the event loop (blocked on a possibly long-duration timeout) is not notified. This patch checks for this condition and, if it obtains, notifies the event loop.