Skip to content

gh-134009: Expose PyMutex_IsLocked in the public C API #134365

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 7 commits into from
Jul 1, 2025

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented May 20, 2025

The PyMutex_IsLocked() function is useful in assertions for verifying that code maintains certain locking invariants.


📚 Documentation preview 📚: https://cpython-previews--134365.org.readthedocs.build/en/134365/c-api/init.html#c.PyMutex_IsLocked

The `PyMutex_IsLocked()` function is useful in assertions for verifying
that code maintains certain locking invariants.
@colesbury colesbury marked this pull request as ready for review June 24, 2025 20:02
@colesbury colesbury merged commit f41e9c7 into python:main Jul 1, 2025
46 checks passed
@colesbury colesbury deleted the gh-134009-pymutex-is-locked branch July 1, 2025 17:26
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.

4 participants