Lines Matching defs:timeout
443 _PyTime_t timeout; // relative timeout
450 // bpo-41710: PyThread_acquire_lock_timed() cannot report timeout
451 // overflow to the caller, so clamp the timeout to
460 timeout = _PyTime_FromNanoseconds(ns);
463 timeout = _PyTime_FromNanoseconds(-1);
470 _PyTime_t deadline = _PyTime_Add(_PyTime_GetMonotonicClock(), timeout);
475 if (timeout > 0 && !intr_flag) {
476 deadline = _PyDeadline_Init(timeout);
481 if (timeout > 0) {
487 timeout);
493 else if (timeout == 0) {
506 // sem_clockwait() uses an absolute timeout, there is no need
507 // to recompute the relative timeout.
509 if (timeout > 0) {
510 /* wait interrupted by a signal (EINTR): recompute the timeout */
511 timeout = _PyDeadline_Get(deadline);
512 if (timeout < 0) {
522 if (timeout > 0) {
531 else if (timeout == 0) {