]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the timeout (GH-93941)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Jun 2022 14:39:27 +0000 (07:39 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 14:39:27 +0000 (07:39 -0700)
commit1353b8a4bcef22d985a0b6a186c96439fd540ea8
treed4f0af50266732fc51c2637a4d403eb8459ea298
parente6cca2e00bf9a3566cb47c417f4d0f480cd4eeb9
gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the timeout (GH-93941)

Set timeout, don't create a local variable with the same name.
(cherry picked from commit f64557f4803528c53bb9a1d565e3cdf92e97152f)

Co-authored-by: Victor Stinner <vstinner@python.org>
Python/thread_pthread.h