Lines Matching refs:wait
143 struct timeval* wait) in handle_timeouts() argument
147 wait->tv_sec = (time_t)-1; in handle_timeouts()
157 wait->tv_sec = p->ev_timeout.tv_sec - now->tv_sec; in handle_timeouts()
159 wait->tv_sec--; in handle_timeouts()
160 wait->tv_usec = 1000000 - (now->tv_usec - in handle_timeouts()
163 wait->tv_usec = p->ev_timeout.tv_usec in handle_timeouts()
178 static int handle_select(struct event_base* base, struct timeval* wait) in handle_select() argument
184 if(wait->tv_sec==(time_t)-1) in handle_select()
185 wait = NULL; in handle_select()
191 if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) { in handle_select()
232 struct timeval wait; in event_base_dispatch() local
238 handle_timeouts(base, base->time_tv, &wait); in event_base_dispatch()
242 if(handle_select(base, &wait) < 0) { in event_base_dispatch()