This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients methane, vstinner, wocket
Date 2020-09-04.08:49:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599209370.98.0.890007942811.issue41710@roundup.psfhosted.org>
In-reply-to
Content
bpo-23428 modified the pthread implementation of conditional variable to use pthread_condattr_setclock(&ca, CLOCK_MONOTONIC) is available: commit 001fee14e0f2ba5f41fb733adc69d5965925a094. The change should be part of Python 3.8.

What is your sys.thread_info value? Example on Fedora 32 with Python 3.8.5:

>>> sys.thread_info
sys.thread_info(name='pthread', lock='semaphore', version='NPTL 2.31')

Sadly, the semaphore implementation doesn't use monotonic clock. See glibc issues:

* https://sourceware.org/bugzilla/show_bug.cgi?id=14717
* https://bugzilla.kernel.org/show_bug.cgi?id=112521
History
Date User Action Args
2020-09-04 08:49:30vstinnersetrecipients: + vstinner, methane, wocket
2020-09-04 08:49:30vstinnersetmessageid: <1599209370.98.0.890007942811.issue41710@roundup.psfhosted.org>
2020-09-04 08:49:30vstinnerlinkissue41710 messages
2020-09-04 08:49:30vstinnercreate