…ngh-104754)
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
pythongh-104341.)
(cherry picked from commit
097b783)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
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.)
(cherry picked from commit 097b783)
Co-authored-by: Eric Snow ericsnowcurrently@gmail.com