Lines Matching defs:events
83 isc_eventlist_t events;
144 REQUIRE(EMPTY(task->events));
194 INIT_LIST(task->events);
261 INSIST(EMPTY(task->events));
268 * Note that we post shutdown events LIFO.
275 ENQUEUE(task->events, event, ev_link);
314 INSIST(EMPTY(task->events));
317 * pending events. We could try to optimize and
374 INSIST(EMPTY(task->events));
379 ENQUEUE(task->events, event, ev_link);
417 * task. It thus doesn't matter if events are added,
465 isc_eventlist_t *events, isc_boolean_t purging)
477 * whose tag is 'tag' will be dequeued. If 'purging', matching events
485 for (event = HEAD(task->events); event != NULL; event = next_event) {
491 DEQUEUE(task->events, event, ev_link);
492 ENQUEUE(*events, event, ev_link);
507 isc_eventlist_t events;
511 * Purge events from a task's event queue.
516 ISC_LIST_INIT(events);
518 count = dequeue_events(task, sender, first, last, tag, &events,
521 for (event = HEAD(events); event != NULL; event = next_event) {
538 * Purge events from a task's event queue.
569 for (curr_event = HEAD(task->events);
574 DEQUEUE(task->events, curr_event, ev_link);
591 isc_eventlist_t *events)
594 * Remove events from a task's event queue.
599 return (dequeue_events(task, sender, first, last, tag, events,
605 void *tag, isc_eventlist_t *events)
608 * Remove events from a task's event queue.
613 return (dequeue_events(task, sender, type, type, tag, events,
846 if (!EMPTY(task->events)) {
847 event = HEAD(task->events);
848 DEQUEUE(task->events, event, ev_link);
869 EMPTY(task->events) &&
875 * pending events for this task,
885 * the "if EMPTY(task->events)" block
888 * If we post no shutdown events,
891 * If we did post shutdown events,
899 if (EMPTY(task->events)) {
1219 * Dispatch the shutdown events.