Lines Matching defs:timeout
112 void uv__io_poll(uv_loop_t* loop, int timeout) {
204 assert(timeout >= -1);
210 user_timeout = timeout;
211 timeout = 0;
217 /* Only need to set the provider_entry_time if timeout != 0. The function
220 if (timeout != 0)
223 if (timeout != -1) {
224 spec.tv_sec = timeout / 1000;
225 spec.tv_nsec = (timeout % 1000) * 1000000;
236 timeout == -1 ? NULL : &spec);
242 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
249 timeout = user_timeout;
251 if (timeout == -1)
253 if (timeout > 0)
257 assert(timeout != -1);
266 timeout = user_timeout;
270 if (timeout == 0)
273 if (timeout == -1)
276 /* Interrupted by a signal. Update timeout and poll again. */
402 timeout = user_timeout;
420 timeout = 0;
426 if (timeout == 0)
429 if (timeout == -1)
433 assert(timeout > 0);
436 if (diff >= (uint64_t) timeout)
439 timeout -= diff;