Lines Matching refs:timeout
133 void uv__io_poll(uv_loop_t* loop, int timeout) {
219 assert(timeout >= -1);
225 user_timeout = timeout;
226 timeout = 0;
232 /* Only need to set the provider_entry_time if timeout != 0. The function
235 if (timeout != 0)
238 /* Store the current timeout in a location that's globally accessible so
242 lfields->current_timeout = timeout;
247 timeout);
250 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
257 timeout = user_timeout;
259 if (timeout == -1)
261 if (timeout > 0)
265 assert(timeout != -1);
275 timeout = user_timeout;
279 if (timeout == -1)
282 if (timeout == 0)
285 /* Interrupted by a signal. Update timeout and poll again. */
335 timeout = user_timeout;
354 timeout = 0;
360 if (timeout == 0)
363 if (timeout == -1)
367 assert(timeout > 0);
370 if (diff >= (uint64_t) timeout)
373 timeout -= diff;