Lines Matching defs:timeout
147 void uv__io_poll(uv_loop_t* loop, int timeout) {
200 assert(timeout >= -1);
206 user_timeout = timeout;
207 timeout = 0;
213 /* Only need to set the provider_entry_time if timeout != 0. The function
216 if (timeout != 0)
219 if (timeout != -1) {
220 spec.tv_sec = timeout / 1000;
221 spec.tv_nsec = (timeout % 1000) * 1000000;
237 timeout == -1 ? NULL : &spec);
255 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
262 timeout = user_timeout;
266 if (timeout == 0)
269 if (timeout == -1)
276 assert(timeout != -1);
325 timeout = user_timeout;
344 timeout = 0;
351 assert(timeout != -1);
355 if (timeout == 0)
358 if (timeout == -1)
362 assert(timeout > 0);
365 if (diff >= (uint64_t) timeout)
368 timeout -= diff;
453 timespec_t timeout;
466 * there is a bug in event ports (Sun bug 6456558) whereby a zeroed timeout
473 memset(&timeout, 0, sizeof timeout);
474 r = port_getn(loop->fs_fd, &pe, 1, &n, &timeout);