diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-20 10:17:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 10:17:17 (GMT) |
commit | 9da7430675ceaeae5abeb9c9f7cd552b71b3a93a (patch) | |
tree | f78a3703f3d8ca26714e1f20cc08df9102f60eab /Include/internal/pycore_pylifecycle.h | |
parent | d51a363a4379385fdfe9c09a56324631465ede29 (diff) | |
download | cpython-9da7430675ceaeae5abeb9c9f7cd552b71b3a93a.zip cpython-9da7430675ceaeae5abeb9c9f7cd552b71b3a93a.tar.gz cpython-9da7430675ceaeae5abeb9c9f7cd552b71b3a93a.tar.bz2 |
bpo-36854: Clear the current thread later (GH-17279)
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().
Diffstat (limited to 'Include/internal/pycore_pylifecycle.h')
0 files changed, 0 insertions, 0 deletions