Lines Matching refs:event
46 typedef void (*ares_event_signal_cb_t)(const ares_event_t *event);
49 /*! Registered event thread this event is bound to */
54 /*! Callback to be called when event is triggered */
59 /*! Data associated with event handle that will be passed to the callback.
60 * Typically OS/event subsystem specific data.
64 /*! When cleaning up the registered event (either when removed or during
68 /*! Callback to call to trigger an event. */
76 ares_bool_t (*event_add)(ares_event_t *event);
77 void (*event_del)(ares_event_t *event);
78 void (*event_mod)(ares_event_t *event, ares_event_flags_t new_flags);
83 /*! Whether the event thread should be online or not. Checked on every wake
84 * event before sleeping. */
88 /*! Lock to protect the data contained within the event thread itself */
93 /*! Not-yet-processed event handle updates. These will get enqueued by a
94 * thread other than the event thread itself. The event thread will then
97 /*! Registered event handles. */
99 /*! Pointer to the event handle which is used to signal and wake the event
101 * file descriptors being waited on and to wake the event subsystem during
110 /*! Queue an update for the event handle.
114 * Do not use the event handle returned if its not guaranteed to be an add
117 * \param[out] event Event handle. Optional, can be NULL. This handle
120 * \param[in] e pointer to event thread handle
121 * \param[in] flags flags for the event handle. Use
127 * event is triggered. Required. Not allowed to be
138 * \param[in] signal_cb Optional. Callback to call to trigger an event.
141 ares_status_t ares_event_update(ares_event_t **event, ares_event_thread_t *e,