summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-05 21:47:09 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-05 21:47:09 (GMT)
commit8408cea0cdc0ccd5900acd99a9a51dd9161ae319 (patch)
tree0dcb39ac0cf5fc5e293941763a31bd2472dd004b /Include/pystate.h
parent39b17c513ae7b9baecdc8292876683647186fee4 (diff)
downloadcpython-8408cea0cdc0ccd5900acd99a9a51dd9161ae319.zip
cpython-8408cea0cdc0ccd5900acd99a9a51dd9161ae319.tar.gz
cpython-8408cea0cdc0ccd5900acd99a9a51dd9161ae319.tar.bz2
Issue #17094: Clear stale thread states after fork().
Note that this is a potentially disruptive change since it may release some system resources which would otherwise remain perpetually alive (e.g. database connections kept in thread-local storage).
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index b29ce2a..a8fcc73 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -139,6 +139,7 @@ PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *);
PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *);
PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *);
PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *);
+PyAPI_FUNC(void) _PyThreadState_DeleteExcept(PyThreadState *tstate);
#ifdef WITH_THREAD
PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void);
PyAPI_FUNC(void) _PyGILState_Reinit(void);