-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-104341: Add a Separate "Running" Lock for Each Thread #104754
gh-104341: Add a Separate "Running" Lock for Each Thread #104754
Conversation
Thanks @ericsnowcurrently for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
GH-104817 is a backport of this pull request to the 3.12 branch. |
This merge is likely the cause of multiple |
I'll take a look first thing in the morning. |
I'd revert this PR. This was not a "minor cleanup". |
…ck for Each Thread (pythongh-104754)" This reverts commit 097b783.
Reverted to unblock everybody else. Please do not make changes to threading without code review and buildbot tests. |
thanks |
Having a separate lock means
Thread.join()
doesn't need to wait for the thread to be cleaned up first. It can wait for the thread's Python target to finish running. This gives us some flexibility in how we clean up threads.(This is
a minor cleanup aspart of a fix for gh-104341.)