Lines Matching defs:event
43 #include <isc/event.h>
55 * as an event loop dispatching various events.
390 isc_event_t *event;
402 * Note that we store the task to which we're going to send the event
403 * in the event's "sender" field.
406 event = isc_event_allocate(mctx, cloned_task, ISC_APPEVENT_SHUTDOWN,
407 action, arg, sizeof(*event));
408 if (event == NULL) {
413 ISC_LIST_APPEND(isc_g_appctx.on_run, event, ev_link);
445 * - there is a timer event
486 * timeout event actually, but there is no other way
509 * event loop recursively until the want_shutdown flag
515 * event loop.
520 * \brief True if we are exiting the event loop as the result of
570 isc_event_t *event, *next_event;
594 for (event = ISC_LIST_HEAD(ctx->on_run);
595 event != NULL;
596 event = next_event) {
597 next_event = ISC_LIST_NEXT(event, ev_link);
598 ISC_LIST_UNLINK(ctx->on_run, event, ev_link);
599 task = event->ev_sender;
600 event->ev_sender = NULL;
601 isc_task_sendanddetach(&task, &event);