mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
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.
This commit is contained in:
parent
6c44fde3e0
commit
8bb3230149
4 changed files with 95 additions and 82 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue