Lines Matching refs:timeout
88 struct timeval now, timeout, t;
97 timeout.tv_sec = 10; /* arbitrary */
98 timeout.tv_usec = 0;
120 if (tv_cmp(&t, &timeout) < 0)
121 timeout = t;
141 nfd = select(nfd + 1, &r, &w, NULL, &timeout);
162 event_add(ev, &ev->timeout);
181 /* if event has no timeout - just requeue */
190 event_add(ev, &ev->timeout);
220 __event_add(struct event *ev, const struct timeval *timeout)
224 if (timeout != NULL) {
226 tv_add(&ev->expire, timeout);
227 ev->timeout = *timeout;