homepage

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 vstinner
Date 2015年02月09日.22:12:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423519926.17.0.158732792797.issue23428@psf.upfronthosting.co.za>
In-reply-to
Content
> Python/condvar.h and Python/thread_pthread.h should use the monotonic clock CLOCK_MONOTONIC
Oh, I forgot that Python/thread_pthread.h only uses pthread_cond_timedwait() if semaphores are emulated with mutexes+conditional variables.
On most platforms, PyThread_acquire_lock_timed() is implemented with sem_timedwait(). Problem: sem_timedwait() requires an absolute time using the CLOCK_REALTIME clock and the clock is not yet configurable on Linux :-(
See the feature request in the glibc: "Bug 14717 - Allow choice of clock source for calls to sem_timedwait() and pthread_mutex_timedwait()" opened in 2012:
https://sourceware.org/bugzilla/show_bug.cgi?id=14717
Note: QNX provides sem_timedwait_monotonic().
History
Date User Action Args
2015年02月09日 22:12:06vstinnersetrecipients: + vstinner
2015年02月09日 22:12:06vstinnersetmessageid: <1423519926.17.0.158732792797.issue23428@psf.upfronthosting.co.za>
2015年02月09日 22:12:06vstinnerlinkissue23428 messages
2015年02月09日 22:12:05vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /