KEMBAR78
[3.14] gh-134009: Expose `PyMutex_IsLocked` in the public C API (gh-134365) by hugovk · Pull Request #136971 · python/cpython · GitHub
Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Jul 22, 2025

The PyMutex_IsLocked() function is useful in assertions for verifying that code maintains certain locking invariants.
(cherry picked from commit f41e9c7)


📚 Documentation preview 📚: https://cpython-previews--136971.org.readthedocs.build/

…pythongh-134365)

The `PyMutex_IsLocked()` function is useful in assertions for verifying
that code maintains certain locking invariants.
(cherry picked from commit f41e9c7)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@hugovk hugovk merged commit 8e43b13 into python:3.14 Jul 22, 2025
45 checks passed
@hugovk hugovk deleted the backport-f41e9c7-3.14 branch July 22, 2025 09:48
@ambv
Copy link
Contributor

ambv commented Jul 22, 2025

Like #136969, this is pretty late for addition after the last beta. This one is okay despite shadowing the old private inlined version with the new function since they are both the same implementation.

kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants