Lines Matching defs:timeout
132 void uv__io_poll(uv_loop_t* loop, int timeout) {
226 assert(timeout >= -1);
232 user_timeout = timeout;
233 timeout = 0;
239 /* Only need to set the provider_entry_time if timeout != 0. The function
242 if (timeout != 0)
245 if (timeout != -1) {
246 spec.tv_sec = timeout / 1000;
247 spec.tv_nsec = (timeout % 1000) * 1000000;
253 /* Store the current timeout in a location that's globally accessible so
257 lfields->current_timeout = timeout;
264 timeout == -1 ? NULL : &spec);
269 /* Unlimited timeout should only return with events or signal. */
270 assert(timeout != -1);
276 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
287 assert((reset_timeout == 0 ? timeout : user_timeout) == 0);
292 timeout = user_timeout;
298 /* Interrupted by a signal. Update timeout and poll again. */
398 timeout = user_timeout;
417 timeout = 0;
424 if (timeout == 0)
427 if (timeout == -1)
430 assert(timeout > 0);
433 if (diff >= (uint64_t) timeout)
436 timeout -= diff;