Lines Matching defs:timeout

1385  * know that we're going to get several thousands of timeout events all with
1386 * the same timeout value.
1388 * Since all our timeout handling code assumes timevals can be copied,
1390 * timeouts. Searching through a list to see if every timeout is common could
1406 /** Return true iff if 'tv' is a common timeout in 'base' */
1418 /* True iff tv1 and tv2 have the same common-timeout index, or if neither
1419 * one is a common timeout. */
1427 /** Requires that 'tv' is a common timeout. Return the corresponding
1447 /* Add the timeout for the first event in given common timeout list to the
1453 struct timeval timeout = head->ev_timeout;
1454 timeout.tv_usec &= MICROSECONDS_MASK;
1455 event_add_nolock_(&ctl->timeout_event, &timeout, 1);
1458 /* Callback: invoked when the timeout for a common timeout queue triggers.
1460 * and the timeout should be rescheduled if there are more events. */
1571 /* reschedule the persistent event if we have a timeout. */
1573 /* If there was a timeout, we want it to run at an interval of
1576 * reason, though, the timeout ought to start ticking _now_. */
2078 * don't put it on the timeout queue. This is one
2396 /* See if there is a timeout that we should report */
2552 /* Implementation function to remove a timeout on a currently pending event.
2564 /* If it's not pending on a timeout, we don't need to do anything. */
2625 * prepare for timeout insertion further below, if we get a
2663 * we should change the timeout state only if the previous event
2675 * for persistent timeout events, we remember the
2676 * timeout value and re-add the event.
2689 /* Check if it is active due to a timeout. Rescheduling
2690 * this timeout before the callback can be executed
2728 "event_add: event %p, timeout in %d seconds %d useconds, call %p",
2745 /* See if the earliest timeout is now earlier than it
2748 * We double check the timeout of the top element to
2845 * deleted timeout event: all that could happen if we don't is
3179 /* Activate every event whose timeout has elapsed. */
3289 /* Remove and reinsert 'ev' into the timeout queue. */
3301 case 3: /* Changing from one common timeout to another */
3329 /* Add 'ev' to the common timeout list in 'ev'. */
3336 * ctl->events, since the timeout on each 'ev' is set to {the common
3337 * timeout} + {the time when we add the event}, and so the events
3420 event_errx(1, "%s: %p(fd "EV_SOCK_FMT") already on timeout", __func__,
3703 /* Now for the events in one of the timeout queues.
3727 * timeout set */