gh-104341: Add a Separate "Running" Lock for Each Thread#104754
Merged
ericsnowcurrently merged 4 commits intopython:mainfrom May 23, 2023
Merged
gh-104341: Add a Separate "Running" Lock for Each Thread#104754ericsnowcurrently merged 4 commits intopython:mainfrom
ericsnowcurrently merged 4 commits intopython:mainfrom
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.)