Lines Matching refs:timeout
159 void uv__io_poll(uv_loop_t* loop, int timeout) { in uv__io_poll() argument
253 assert(timeout >= -1); in uv__io_poll()
259 user_timeout = timeout; in uv__io_poll()
260 timeout = 0; in uv__io_poll()
269 if (timeout != 0) in uv__io_poll()
272 if (timeout != -1) { in uv__io_poll()
273 spec.tv_sec = timeout / 1000; in uv__io_poll()
274 spec.tv_nsec = (timeout % 1000) * 1000000; in uv__io_poll()
284 lfields->current_timeout = timeout; in uv__io_poll()
291 timeout == -1 ? NULL : &spec); in uv__io_poll()
297 assert(timeout != -1); in uv__io_poll()
314 assert((reset_timeout == 0 ? timeout : user_timeout) == 0); in uv__io_poll()
319 timeout = user_timeout; in uv__io_poll()
436 timeout = user_timeout; in uv__io_poll()
455 timeout = 0; in uv__io_poll()
462 if (timeout == 0) in uv__io_poll()
465 if (timeout == -1) in uv__io_poll()
468 assert(timeout > 0); in uv__io_poll()
471 if (diff >= (uint64_t) timeout) in uv__io_poll()
474 timeout -= diff; in uv__io_poll()