summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-24 14:47:40 (GMT)
committerGitHub <noreply@github.com>2019-04-24 14:47:40 (GMT)
commit8bb3230149538c25c1bacced5e64a3c071475f73 (patch)
tree85cbf4d3ed1c1c47eced4b472083b5bd2dfa39e7 /Include/internal
parent6c44fde3e03079e0c69f823dafbe04af50b5bd0d (diff)
downloadcpython-8bb3230149538c25c1bacced5e64a3c071475f73.zip
cpython-8bb3230149538c25c1bacced5e64a3c071475f73.tar.gz
cpython-8bb3230149538c25c1bacced5e64a3c071475f73.tar.bz2
bpo-36710: Add runtime parameter to _PyThreadState_Init() (GH-12935)
* Add 'runtime' parameter to _PyThreadState_Init() * Add 'gilstate' parameter to _PyGILState_NoteThreadState() * Move _PyThreadState_Init() and _PyThreadState_DeleteExcept() to the internal C API.
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_pystate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index e1ce08d..509ca36 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -231,6 +231,11 @@ PyAPI_FUNC(void) _PyRuntime_Finalize(void);
/* Other */
+PyAPI_FUNC(void) _PyThreadState_Init(
+ _PyRuntimeState *runtime,
+ PyThreadState *tstate);
+PyAPI_FUNC(void) _PyThreadState_DeleteExcept(PyThreadState *tstate);
+
PyAPI_FUNC(_PyInitError) _PyInterpreterState_Enable(_PyRuntimeState *);
PyAPI_FUNC(void) _PyInterpreterState_DeleteExceptMain(void);