-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-115942: Add locked
to several multiprocessing locks
#115944
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
Conversation
@gpshead do you have an opinion about this? :) |
friendly ping @gpshead |
Co-authored-by: mpage <mpage@cs.stanford.edu>
FWIW this PR makes sense to me. |
Ok, then I will add all the missing details. Thanks a lot! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests on threading.RLock.locked().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some rewording. Otherwise, once tests requested by Victor are added, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish I could object to this being a locked() method instead of a .locked property... but this is matching an existing ancient API on purpose so... LGTM.
Thanks everyone! 🎉 |
…n#115944) Co-authored-by: mpage <mpage@cs.stanford.edu> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
TODO:
AcquirerProxy
object has no attributelocked
#115942