cpython/Lib/concurrent/interpreters
Bhuvansh 27349e7026
[3.14] gh-153005: Use a monotonic clock for concurrent.interpreters Queue timeouts (GH-154156) (GH-156018)
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:43:52 +03:00
..
__init__.py [3.14] gh-155997: Fix list_all() if an interpreter is destroyed during the call (GH-155998) (GH-156005) 2026-08-18 12:40:05 +00:00
_crossinterp.py
_queues.py [3.14] gh-153005: Use a monotonic clock for concurrent.interpreters Queue timeouts (GH-154156) (GH-156018) 2026-08-20 19:43:52 +03:00