Lines Matching refs:deadline
47 period_ms_t deadline; member
78 static void alarm_set_internal(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *dat…
135 if (alarm->deadline) in alarm_get_remaining_ms()
136 remaining_ms = alarm->deadline - now(); in alarm_get_remaining_ms()
142 void alarm_set(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *data) { in alarm_set() argument
143 alarm_set_internal(alarm, deadline, cb, data, false); in alarm_set()
178 alarm->deadline = 0; in alarm_cancel()
271 alarm->deadline = just_now + (alarm->period - ms_into_period); in schedule_next_instance()
274 if (list_is_empty(alarms) || ((alarm_t *)list_front(alarms))->deadline >= alarm->deadline) in schedule_next_instance()
279 if (next == list_end(alarms) || ((alarm_t *)list_node(next))->deadline >= alarm->deadline) { in schedule_next_instance()
303 int64_t next_expiration = next->deadline - now(); in reschedule_root_alarm()
313 wakeup_time.it_value.tv_sec = (next->deadline / 1000); in reschedule_root_alarm()
314 wakeup_time.it_value.tv_nsec = (next->deadline % 1000) * 1000000LL; in reschedule_root_alarm()
368 if (list_is_empty(alarms) || (alarm = list_front(alarms))->deadline > now()) { in callback_dispatch()
384 alarm->deadline = 0; in callback_dispatch()