diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-29 09:15:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 09:15:56 (GMT) |
commit | b36e5d627d4232a01850707eb78a5067f3fd77f4 (patch) | |
tree | 63eb8a0966e7ac1b721f8de5c877d4bc79c6fa58 /Include/ceval.h | |
parent | 7a5a1cfe04892351bba8e8d7d21ae2262fa35b67 (diff) | |
download | cpython-b36e5d627d4232a01850707eb78a5067f3fd77f4.zip cpython-b36e5d627d4232a01850707eb78a5067f3fd77f4.tar.gz cpython-b36e5d627d4232a01850707eb78a5067f3fd77f4.tar.bz2 |
bpo-36356: Destroy the GIL at exit (GH-12453)
* 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().
Diffstat (limited to 'Include/ceval.h')
-rw-r--r-- | Include/ceval.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index 11283c0..98e873d 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -192,9 +192,6 @@ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); PyAPI_FUNC(void) PyEval_InitThreads(void); -#ifndef Py_LIMITED_API -PyAPI_FUNC(void) _PyEval_FiniThreads(void); -#endif /* !Py_LIMITED_API */ PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2); PyAPI_FUNC(void) PyEval_ReleaseLock(void) /* Py_DEPRECATED(3.2) */; PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); |