]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137514: Add a free-threading wrapper for mutexes (GH-137515)
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 7 Aug 2025 15:24:50 +0000 (11:24 -0400)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 15:24:50 +0000 (11:24 -0400)
commit082f370cdd0ec1484b033c70ec81b4b7a972ee2c
treefbf0c358fc0f6ae603572f8c0336ec0bb6ae5af5
parentdec624e0afe6d22d38409d2e7dd9636ea0170378
gh-137514: Add a free-threading wrapper for mutexes (GH-137515)

Add `FT_MUTEX_LOCK`/`FT_MUTEX_UNLOCK`, which call `PyMutex_Lock` and `PyMutex_Unlock` on the free-threaded build, and no-op otherwise.
Include/internal/pycore_pyatomic_ft_wrappers.h
Modules/_ctypes/malloc_closure.c
Objects/codeobject.c
Objects/unicodeobject.c
Parser/pegen.c
Python/ceval_gil.c
Python/codecs.c
Python/legacy_tracing.c
Python/pystate.c