bpo-36356: Destroy the GIL at exit by vstinner · Pull Request #12453 · python/cpython

@vstinner vstinner changed the title bpo-36356: Destroy the GIL at exit [WIP] bpo-36356: Destroy the GIL at exit

Apr 26, 2019

@vstinner

* Add _PyEval_FiniThreads2(). _PyEval_FiniThreads() now only clears
  the pending lock, whereas _PyEval_FiniThreads2() destroys the GIL.
* pymain_free() now calls _PyEval_FiniThreads2().
* Py_FinalizeEx() now calls _PyEval_FiniThreads().

@vstinner vstinner changed the title [WIP] bpo-36356: Destroy the GIL at exit bpo-36356: Destroy the GIL at exit

Apr 29, 2019

vstinner added a commit that referenced this pull request

Apr 29, 2019

@vstinner