45 const int et_const_retry)
61 if (et_const_retry < 0)
69 wakeup = et_const_retry;
73 if (tv && wakeup < tv->tv_sec)
77 (
int) wakeup, et->
n, et_const_retry);
bool event_timeout_trigger(struct event_timeout *et, struct timeval *tv, const int et_const_retry)
This is the principal function for testing and triggering recurring timers.
void interval_init(struct interval *top, int horizon, int refresh)
static interval_t event_timeout_remaining(struct event_timeout *et)
Returns the time until the timeout should triggered, from now.
interval_t n
periodic interval for periodic timeouts
bool defined
This timeout is active.
time_t last
time of last event