int exit; //!< If non-zero, the event loop will exit after its current
///< iteration, returning this value.
- bool timers_relative; //!< All new 'in' timer events, are inserted relative
- ///< to el->now.
-
fr_time_t now; //!< The last time the event list was serviced.
bool dispatch; //!< Whether the event list is currently dispatching events.
{
fr_time_t now;
- /*
- * Sometimes we need everything to be relative
- * to the last time the corral function was
- * called (for testing purposes).
- */
- now = !el->timers_relative ? fr_time() : el->now;
+ now = fr_time();
now += delta;
return fr_event_timer_at(ctx, el, ev_p, now, callback, uctx);
return el->exit;
}
-/** All deltas are calculated from the last value of el->now
- *
- * @param[in] el to modify.
- */
-void fr_event_list_relative_mode(fr_event_list_t *el)
-{
- el->timers_relative = true;
-}
-
/** Cleanup an event list
*
* Frees/destroys any resources associated with an event list
bool fr_event_loop_exiting(fr_event_list_t *el);
int fr_event_loop(fr_event_list_t *el);
-void fr_event_list_relative_mode(fr_event_list_t *el);
fr_event_list_t *fr_event_list_alloc(TALLOC_CTX *ctx, fr_event_status_cb_t status, void *status_ctx);
#ifdef __cplusplus