]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110850: Use _PyDeadline_Get() in EnterNonRecursiveMutex() (#118556)
authorVictor Stinner <vstinner@python.org>
Sat, 4 May 2024 07:39:58 +0000 (09:39 +0200)
committerGitHub <noreply@github.com>
Sat, 4 May 2024 07:39:58 +0000 (09:39 +0200)
commit0b7814e0b638631fa2f5c81bcbab7b94064948d7
tree00dd17c456b2fa165ff4c29cdd948bea481f9da6
parent42dc5b4ace39a3983cd9853719527f4724693adc
gh-110850: Use _PyDeadline_Get() in EnterNonRecursiveMutex() (#118556)

Use _PyDeadline_Init() and _PyDeadline_Get() in
EnterNonRecursiveMutex() of thread_nt.h.

_PyDeadline_Get() uses the monotonic clock which is now the same as
the perf counter clock on all platforms. So this change does not
cause any behavior change. It just reuses existing helper functions.
Python/thread_nt.h