Lines Matching defs:when
51 struct timeval when;
114 const struct timeval *when, void (*callback)(void *), void *arg)
120 timeradd(&now, when, &w);
148 t->when.tv_sec = w.tv_sec;
149 t->when.tv_usec = w.tv_usec;
158 if (!timeouts || timercmp(&t->when, &timeouts->when, <)) {
164 if (timercmp(&t->when, &tt->next->when, <)) {
174 add_q_timeout_sec(int queue, time_t when, void (*callback)(void *), void *arg)
178 tv.tv_sec = when;
299 if (timercmp(&now, &timeouts->when, >)) {
307 timersub(&timeouts->when, &now, &tv);
319 /* Allocate memory for our pollfds as and when needed.