Lines Matching refs:timeout
134 void uv__io_poll(uv_loop_t* loop, int timeout) {
182 assert(timeout >= -1);
187 user_timeout = timeout;
188 timeout = 0;
198 /* Only need to set the provider_entry_time if timeout != 0. The function
201 if (timeout != 0)
204 /* Store the current timeout in a location that's globally accessible so
208 lfields->current_timeout = timeout;
213 nfds = poll(loop->poll_fds, (nfds_t)loop->poll_fds_used, timeout);
219 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
226 timeout = user_timeout;
228 if (timeout == -1)
230 if (timeout > 0)
234 assert(timeout != -1);
243 timeout = user_timeout;
247 if (timeout == -1)
250 if (timeout == 0)
253 /* Interrupted by a signal. Update timeout and poll again. */
306 timeout = user_timeout;
327 if (timeout == 0)
330 if (timeout == -1)
334 assert(timeout > 0);
337 if (time_diff >= (uint64_t) timeout)
340 timeout -= time_diff;