Lines Matching refs:timeheap
181 min_heap_ctor(&base->timeheap); in event_base_new()
228 while ((ev = min_heap_top(&base->timeheap)) != NULL) { in event_base_free()
254 assert(min_heap_empty(&base->timeheap)); in event_base_free()
255 min_heap_dtor(&base->timeheap); in event_base_free()
722 if (min_heap_reserve(&base->timeheap, in event_add()
723 1 + min_heap_size(&base->timeheap)) == -1) in event_add()
839 if ((ev = min_heap_top(&base->timeheap)) == NULL) { in timeout_next()
893 pev = base->timeheap.p; in timeout_correct()
894 size = base->timeheap.n; in timeout_correct()
909 if (min_heap_empty(&base->timeheap)) in timeout_process()
914 while ((ev = min_heap_top(&base->timeheap))) { in timeout_process()
948 min_heap_erase(&base->timeheap, ev); in event_queue_remove()
981 min_heap_push(&base->timeheap, ev); in event_queue_insert()