Skip to content

[3.14] gh-134009: Expose PyMutex_IsLocked in the public C API (gh-134365) #136971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025

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.

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