Lines Matching refs:timeout
147 void uv__io_poll(uv_loop_t* loop, int timeout) { in uv__io_poll() argument
200 assert(timeout >= -1); in uv__io_poll()
206 user_timeout = timeout; in uv__io_poll()
207 timeout = 0; in uv__io_poll()
216 if (timeout != 0) in uv__io_poll()
219 if (timeout != -1) { in uv__io_poll()
220 spec.tv_sec = timeout / 1000; in uv__io_poll()
221 spec.tv_nsec = (timeout % 1000) * 1000000; in uv__io_poll()
237 timeout == -1 ? NULL : &spec); in uv__io_poll()
262 timeout = user_timeout; in uv__io_poll()
266 if (timeout == 0) in uv__io_poll()
269 if (timeout == -1) in uv__io_poll()
276 assert(timeout != -1); in uv__io_poll()
325 timeout = user_timeout; in uv__io_poll()
344 timeout = 0; in uv__io_poll()
351 assert(timeout != -1); in uv__io_poll()
355 if (timeout == 0) in uv__io_poll()
358 if (timeout == -1) in uv__io_poll()
362 assert(timeout > 0); in uv__io_poll()
365 if (diff >= (uint64_t) timeout) in uv__io_poll()
368 timeout -= diff; in uv__io_poll()
453 timespec_t timeout; in uv__fs_event_read() local
473 memset(&timeout, 0, sizeof timeout); in uv__fs_event_read()
474 r = port_getn(loop->fs_fd, &pe, 1, &n, &timeout); in uv__fs_event_read()