diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-04-13 17:23:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-13 17:23:24 +0100 |
commit | fde9b33dfeedd4a4ed723b12d2330979dc684760 (patch) | |
tree | c59bb8ffcfff3374eee09b4b9b5c969bf19fcebc /Lib/unittest/mock.py | |
parent | 46544f69bff1c3c4173d461be35993ca0109f622 (diff) | |
download | cpython-git-fde9b33dfeedd4a4ed723b12d2330979dc684760.tar.gz |
bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread (GH-12541)
Calling these function from a thread when the runtime is finalizing will terminate
the thread, even if the thread was not created by Python. Users can use
_Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of
being finalized before calling this function to avoid unwanted termination.
Diffstat (limited to 'Lib/unittest/mock.py')
0 files changed, 0 insertions, 0 deletions