Skip to content

gh-104341: Add a Separate "Running" Lock for Each Thread#104754

Merged
ericsnowcurrently merged 4 commits intopython:mainfrom
ericsnowcurrently:threading-running-lock
May 23, 2023
Merged

gh-104341: Add a Separate "Running" Lock for Each Thread#104754
ericsnowcurrently merged 4 commits intopython:mainfrom
ericsnowcurrently:threading-running-lock

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 22, 2023

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 as part of a fix for gh-104341.)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants