-
Notifications
You must be signed in to change notification settings - Fork 21
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
Availability of PyMutex to implement locking for thread-safety #6
Comments
The C API working group decided to expose PyMutex in the C API capi-workgroup/decisions#22 (comment). We’re after the code freeze so it will take a special decision from the release manager for it to be included in 3.13 but it will definitely be in 3.14. |
|
Also the critical section API (i.e., |
This is all done and documented in https://py-free-threading.github.io/porting/ now, so let's close this. |
Relevant discussions for making
PyMutex
public in CPython for 3.13:PyMutex
functions public python/cpython#117511The second link notes some current alternatives, like
PyThreadType_lock
or platform-specific locks.The text was updated successfully, but these errors were encountered: