Lines Matching refs:timeout
428 static void uv__poll_wine(uv_loop_t* loop, DWORD timeout) {
440 timeout_time = loop->time + timeout;
444 user_timeout = timeout;
445 timeout = 0;
451 /* Only need to set the provider_entry_time if timeout != 0. The function
454 if (timeout != 0)
457 /* Store the current timeout in a location that's globally accessible so
461 lfields->current_timeout = timeout;
467 timeout);
470 if (overlapped && timeout == 0)
472 timeout = user_timeout;
478 * the timeout will be updated and the loop will run again. In either case
497 } else if (timeout > 0) {
499 * Make sure that the desired timeout target time is reached.
503 timeout = (DWORD)(timeout_time - loop->time);
507 * loop cannot happen, the timeout is increased exponentially
510 timeout += repeat ? (1 << (repeat - 1)) : 0;
519 static void uv__poll(uv_loop_t* loop, DWORD timeout) {
533 timeout_time = loop->time + timeout;
537 user_timeout = timeout;
538 timeout = 0;
544 actual_timeout = timeout;
546 /* Only need to set the provider_entry_time if timeout != 0. The function
549 if (timeout != 0)
552 /* Store the current timeout in a location that's globally accessible so
556 lfields->current_timeout = timeout;
562 timeout,
566 timeout = user_timeout;
572 * then the timeout will be updated and the loop will run again. In either
599 } else if (timeout > 0) {
601 * Make sure that the desired timeout target time is reached.
605 timeout = (DWORD)(timeout_time - loop->time);
609 * loop cannot happen, the timeout is increased exponentially
612 timeout += repeat ? (1 << (repeat - 1)) : 0;
622 DWORD timeout;
646 timeout = 0;
648 timeout = uv_backend_timeout(loop);
653 uv__poll(loop, timeout);
655 uv__poll_wine(loop, timeout);
663 * returned because the timeout expired, but no events were received. This
665 * the timeout == 0) or was already updated b/c an event was received.