bpo-36854: Clear the current thread later by vstinner · Pull Request #17279 · python/cpython (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation0 Commits1 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Clear the current thread later in the Python finalization.
- The PyInterpreterState_Delete() function is now responsible
to call PyThreadState_Swap(NULL). - The tstate_delete_common() function is now responsible to clear the
"autoTSSKey" thread local storage and it only clears it once the
thread state is fully cleared. It allows to still get the current
thread from TSS in tstate_delete_common().
https://bugs.python.org/issue36854
Clear the current thread later in the Python finalization.
- The PyInterpreterState_Delete() function is now responsible to call PyThreadState_Swap(NULL).
- The tstate_delete_common() function is now responsible to clear the "autoTSSKey" thread local storage and it only clears it once the thread state is fully cleared. It allows to still get the current thread from TSS in tstate_delete_common().
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request
Clear the current thread later in the Python finalization.
- The PyInterpreterState_Delete() function is now responsible to call PyThreadState_Swap(NULL).
- The tstate_delete_common() function is now responsible to clear the "autoTSSKey" thread local storage and it only clears it once the thread state is fully cleared. It allows to still get the current thread from TSS in tstate_delete_common().
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request
Clear the current thread later in the Python finalization.
- The PyInterpreterState_Delete() function is now responsible to call PyThreadState_Swap(NULL).
- The tstate_delete_common() function is now responsible to clear the "autoTSSKey" thread local storage and it only clears it once the thread state is fully cleared. It allows to still get the current thread from TSS in tstate_delete_common().