• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/lwip/src/core/

Lines Matching refs:timeout

89             /* If time == SYS_ARCH_TIMEOUT, a timeout occured before a message
90 could be fetched. We should now call the timeout handler and
91 deallocate the memory allocated for the timeout. */
106 /* If time != SYS_ARCH_TIMEOUT, a message was received before the timeout
146 /* If time == SYS_ARCH_TIMEOUT, a timeout occured before a message
147 could be fetched. We should now call the timeout handler and
148 deallocate the memory allocated for the timeout. */
163 /* If time != SYS_ARCH_TIMEOUT, a message was received before the timeout
176 * Create a one-shot timer (aka timeout). Timeouts are processed in the
189 struct sys_timeo *timeout, *t;
191 timeout = memp_malloc(MEMP_SYS_TIMEOUT);
192 if (timeout == NULL) {
193 LWIP_ASSERT("sys_timeout: timeout != NULL", timeout != NULL);
196 timeout->next = NULL;
197 timeout->h = h;
198 timeout->arg = arg;
199 timeout->time = msecs;
204 (void *) timeout, msecs, (void *) &h,
213 timeouts->next = timeout;
219 timeout->next = timeouts->next;
220 timeouts->next = timeout;
223 timeout->time -= t->time;
224 if (t->next == NULL || t->next->time > timeout->time) {
226 t->next->time -= timeout->time;
228 timeout->next = t->next;
229 t->next = timeout;
237 * Go through timeout list (for this task only) and remove the first matching
238 * entry, even though the timeout has not triggered yet.
240 * @note This function only works as expected if there is only one timeout
243 * @param h callback function that would be called by the timeout
294 * Wait for a semaphore with timeout (specified in ms)
297 * @param timeout timeout in ms (0: wait forever)
298 * @return 0 on timeout, 1 otherwise
300 int sys_sem_wait_timeout(sys_sem_t sem, u32_t timeout)
307 /* If timeout is zero, then just wait forever */
308 if (timeout > 0) {
310 sys_timeout(timeout, sswt_handler, &sswt_cb);
313 /* Was it a timeout? */
315 /* timeout */
318 /* Not a timeout. Remove timeout entry */