Lines Matching refs:timeout
804 void uv__io_poll(uv_loop_t* loop, int timeout) {
868 assert(timeout >= -1);
871 real_timeout = timeout;
877 user_timeout = timeout;
878 timeout = 0;
885 /* Only need to set the provider_entry_time if timeout != 0. The function
888 if (timeout != 0)
891 if (sizeof(int32_t) == sizeof(long) && timeout >= max_safe_timeout)
892 timeout = max_safe_timeout;
895 ARRAY_SIZE(events), timeout);
898 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
904 assert(timeout != -1);
907 timeout = user_timeout;
911 if (timeout == -1)
914 if (timeout == 0)
917 /* We may have been inside the system call for longer than |timeout|
929 timeout = user_timeout;
933 if (timeout == -1)
936 if (timeout == 0)
939 /* Interrupted by a signal. Update timeout and poll again. */
1002 timeout = user_timeout;
1020 timeout = 0;
1026 if (timeout == 0)
1029 if (timeout == -1)
1033 assert(timeout > 0);
1039 timeout = real_timeout;