mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
This reverts commit 396e0a8d9d
.
This commit is contained in:
parent
9535aff942
commit
0fd2c300c2
11 changed files with 103 additions and 99 deletions
|
@ -19,9 +19,6 @@ extern "C" {
|
|||
#include "pycore_pymem.h"
|
||||
#include "pycore_warnings.h"
|
||||
|
||||
// forward
|
||||
struct pyruntimestate;
|
||||
|
||||
|
||||
/* ceval state */
|
||||
|
||||
|
@ -71,7 +68,6 @@ struct _is {
|
|||
|
||||
struct _is *next;
|
||||
struct _ts *tstate_head;
|
||||
struct pyruntimestate *runtime;
|
||||
|
||||
int64_t id;
|
||||
int64_t id_refcount;
|
||||
|
@ -300,8 +296,12 @@ PyAPI_FUNC(void) _PyRuntime_Finalize(void);
|
|||
|
||||
/* Other */
|
||||
|
||||
PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *tstate);
|
||||
PyAPI_FUNC(void) _PyThreadState_DeleteExcept(PyThreadState *tstate);
|
||||
PyAPI_FUNC(void) _PyThreadState_Init(
|
||||
_PyRuntimeState *runtime,
|
||||
PyThreadState *tstate);
|
||||
PyAPI_FUNC(void) _PyThreadState_DeleteExcept(
|
||||
_PyRuntimeState *runtime,
|
||||
PyThreadState *tstate);
|
||||
|
||||
PyAPI_FUNC(PyThreadState *) _PyThreadState_Swap(
|
||||
struct _gilstate_runtime_state *gilstate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue