Lines Matching refs:timeout
165 void uv__io_poll(uv_loop_t* loop, int timeout) { in uv__io_poll() argument
259 assert(timeout >= -1); in uv__io_poll()
265 user_timeout = timeout; in uv__io_poll()
266 timeout = 0; in uv__io_poll()
275 if (timeout != 0) in uv__io_poll()
278 if (timeout != -1) { in uv__io_poll()
279 spec.tv_sec = timeout / 1000; in uv__io_poll()
280 spec.tv_nsec = (timeout % 1000) * 1000000; in uv__io_poll()
290 lfields->current_timeout = timeout; in uv__io_poll()
297 timeout == -1 ? NULL : &spec); in uv__io_poll()
303 assert(timeout != -1); in uv__io_poll()
320 assert((reset_timeout == 0 ? timeout : user_timeout) == 0); in uv__io_poll()
325 timeout = user_timeout; in uv__io_poll()
431 timeout = user_timeout; in uv__io_poll()
450 timeout = 0; in uv__io_poll()
457 if (timeout == 0) in uv__io_poll()
460 if (timeout == -1) in uv__io_poll()
463 assert(timeout > 0); in uv__io_poll()
466 if (diff >= (uint64_t) timeout) in uv__io_poll()
469 timeout -= diff; in uv__io_poll()