diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-13 14:16:46 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-13 14:16:46 (GMT) |
commit | 1df1536fb98c1c2bbeefe373bc38877129f905e1 (patch) | |
tree | a1489c86f4f1ea5b0645afcabf8aee765826d18a /Include/ceval.h | |
parent | bea8ae794873485eef1b0c0c20b374df99858430 (diff) | |
download | cpython-1df1536fb98c1c2bbeefe373bc38877129f905e1.zip cpython-1df1536fb98c1c2bbeefe373bc38877129f905e1.tar.gz cpython-1df1536fb98c1c2bbeefe373bc38877129f905e1.tar.bz2 |
Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properly
re-created on a subsequent call to Py_Initialize(). The problem (a crash)
wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial.
Diffstat (limited to 'Include/ceval.h')
-rw-r--r-- | Include/ceval.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index e55f4b4..2acde13 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -160,6 +160,7 @@ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); PyAPI_FUNC(void) PyEval_InitThreads(void); +PyAPI_FUNC(void) _PyEval_FiniThreads(void); PyAPI_FUNC(void) PyEval_AcquireLock(void); PyAPI_FUNC(void) PyEval_ReleaseLock(void); PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); |