Skip to content

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

Merged
merged 10 commits into from
Apr 8, 2025

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Feb 26, 2024

TODO:

  • Get field-expert's approval
  • Docs
  • News

@sobolevn sobolevn marked this pull request as ready for review March 13, 2024 06:44
@sobolevn sobolevn requested a review from gpshead as a code owner March 13, 2024 06:44
@sobolevn
Copy link
Member Author

sobolevn commented Jun 3, 2024

@gpshead do you have an opinion about this? :)

@sobolevn
Copy link
Member Author

friendly ping @gpshead

Co-authored-by: mpage <mpage@cs.stanford.edu>
@gpshead
Copy link
Member

gpshead commented Mar 13, 2025

FWIW this PR makes sense to me.

@sobolevn
Copy link
Member Author

Ok, then I will add all the missing details. Thanks a lot! 👍

Copy link
Member

@vstinner vstinner left a 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().

Copy link
Member

@picnixz picnixz left a 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.

@sobolevn
Copy link
Member Author

sobolevn commented Apr 1, 2025

@vstinner @gpshead this is now ready to be reviewed :)

@sobolevn sobolevn requested review from vstinner and mpage April 1, 2025 09:43
Copy link
Member

@vstinner vstinner left a 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>
Copy link
Member

@gpshead gpshead left a 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.

@sobolevn sobolevn merged commit f7305a0 into python:main Apr 8, 2025
42 checks passed
@sobolevn
Copy link
Member Author

sobolevn commented Apr 8, 2025

Thanks everyone! 🎉

seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…n#115944)

Co-authored-by: mpage <mpage@cs.stanford.edu>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
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.

6 participants