timeout_process ...... while ((ev = min_heap_top(&base->timeheap))) { if (evutil_timercmp(&ev->ev_timeout, &now, >)) break; ev->ev_flags |= EVLIST_TIMEOUT; //add
Why?
EVLIST_TIMEOUT should be set if an event is already in the minheap. If ev does not have EVLIST_TIMEOUT set, then there is a bug somewhere else.
Log in to post a comment.
Why?
EVLIST_TIMEOUT should be set if an event is already in the minheap. If ev does not have EVLIST_TIMEOUT set, then there is a bug somewhere else.