summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2021-09-30-23-00-18.bpo-41710.svuloZ.rst
blob: d8a4f9507c1898f58c27fbfb5f11f6447564faa4 (plain)
1
2
3
4
5
On Unix, if the ``sem_clockwait()`` function is available in the C library
(glibc 2.30 and newer), the :meth:`threading.Lock.acquire` method now uses the
monotonic clock (:data:`time.CLOCK_MONOTONIC`) for the timeout, rather than
using the system clock (:data:`time.CLOCK_REALTIME`), to not be affected by
system clock changes. Patch by Victor Stinner.