]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112606: Use pthread_cond_timedwait_relative_np() in parking_lot.c when available...
authorMatt Prodani <mattp@nyu.edu>
Tue, 30 Jan 2024 21:22:17 +0000 (16:22 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2024 21:22:17 +0000 (22:22 +0100)
commite5e186609fdd74bc53e8478da22b76440d996baa
treee9b59d9f6fe02ea4799f1c969467c95a7d749097
parentfda7445ca50b892955fc31bd72a3615fef1d70c6
gh-112606: Use pthread_cond_timedwait_relative_np() in parking_lot.c when available (#112616)

Add a configure define for HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP and
replaces pthread_cond_timedwait() with pthread_cond_timedwait_relative_np()
for relative time when supported in semaphore waiting logic.
Python/parking_lot.c
configure
configure.ac
pyconfig.h.in