Lines Matching refs:timeout
63 /** The one and only timeout list */
252 * Create a one-shot timer (aka timeout). Timeouts are processed in the
269 struct sys_timeo *timeout, *t;
271 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
272 if (timeout == NULL) {
273 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
276 timeout->next = NULL;
277 timeout->h = handler;
278 timeout->arg = arg;
279 timeout->time = msecs;
281 timeout->handler_name = handler_name;
283 (void *)timeout, msecs, handler_name, (void *)arg));
287 next_timeout = timeout;
293 timeout->next = next_timeout;
294 next_timeout = timeout;
297 timeout->time -= t->time;
298 if (t->next == NULL || t->next->time > timeout->time) {
300 t->next->time -= timeout->time;
302 timeout->next = t->next;
303 t->next = timeout;
311 * Go through timeout list (for this task only) and remove the first matching
312 * entry, even though the timeout has not triggered yet.
314 * @note This function only works as expected if there is only one timeout
317 * @param handler callback function that would be called by the timeout
352 * tcpip_thread/sys_timeouts_mbox_fetch(). Uses sys_now() to call timeout
379 /* timeout has expired */
441 /* If time == SYS_ARCH_TIMEOUT, a timeout occured before a message
442 could be fetched. We should now call the timeout handler and
443 deallocate the memory allocated for the timeout. */
457 timeout handler function. */
467 /* If time != SYS_ARCH_TIMEOUT, a message was received before the timeout