Lines Matching refs:timeout
28 * Simple implementation of timeout functionality. The granuality is a sec
37 typedef struct timeout {
38 struct timeout *sip_timeout_next;
65 sip_timeout_t *timeout = NULL;
69 timeout = timeout_current_start;
73 timeout_current_start = timeout->sip_timeout_next;
75 timeout->sip_timeout_callback_func(
76 timeout->sip_timeout_callback_func_arg);
77 free(timeout);
167 * Add a new timeout
235 * Schedule the next timeout
240 sip_timeout_t *timeout = NULL;
261 timeout = timeout_list;
266 while (timeout != NULL && timeout->sip_timeout_val <= current_time) {
267 last = timeout;
268 timeout = timeout->sip_timeout_next;
271 timeout = last;
272 if (timeout != NULL) {
275 timeout_current_end = timeout;
278 timeout_current_end = timeout;
281 timeout_list = timeout->sip_timeout_next;
282 timeout->sip_timeout_next = NULL;