Retry:
* signal.sigtimedwait()
* threading.Lock.acquire()
* threading.RLock.acquire()
* time.sleep()
/* Check for negative values, since those mean block forever.
*/
- if (timeout <= 0) {
+ if (timeout < 0) {
r = PY_LOCK_FAILURE;
}
}
monotonic = _PyTime_GetMonotonicClock();
timeout = deadline - monotonic;
- if (timeout <= 0)
+ if (timeout < 0)
break;
} while (1);
monotonic = _PyTime_GetMonotonicClock();
secs = deadline - monotonic;
- if (secs <= 00)
+ if (secs < 0)
break;
/* retry with the recomputed delay */
} while (1);