]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134009: Expose `PyMutex_IsLocked` in the public C API (gh-134365)
authorSam Gross <colesbury@gmail.com>
Tue, 1 Jul 2025 17:26:13 +0000 (13:26 -0400)
committerGitHub <noreply@github.com>
Tue, 1 Jul 2025 17:26:13 +0000 (13:26 -0400)
commitf41e9c750e6971c165e055374a1014d6afd2d50e
treebf1e4a487d006801b57374769904761ecbed3c2d
parent86c3316183a79867e3c666d0830f897e16f0f339
gh-134009: Expose `PyMutex_IsLocked` in the public C API (gh-134365)

The `PyMutex_IsLocked()` function is useful in assertions for verifying
that code maintains certain locking invariants.
Doc/c-api/init.rst
Doc/whatsnew/3.15.rst
Include/cpython/lock.h
Include/internal/pycore_lock.h
Misc/NEWS.d/next/C_API/2025-05-20-17-13-51.gh-issue-134009.CpCmry.rst [new file with mode: 0644]
Python/lock.c