cpython/Lib/test/support/interpreters
Bhuvansh b205580c37
[3.13] gh-153005: Use a monotonic clock for concurrent.interpreters Queue timeouts (GH-154156) (GH-156019)
Queue.get() and Queue.put() computed their timeout deadline from
time.time(), the wall clock. If the system clock was stepped (NTP, a
manual change) while a call was blocked, the timeout could over- or
under-wait. queue.Queue uses time.monotonic() for the same reason.

Compute the deadline and check it against time.monotonic() instead.

(cherry picked from commit b94b9c8886)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
2026-08-20 19:46:38 +03:00
..
__init__.py
_crossinterp.py
channels.py
queues.py