diff options
Diffstat (limited to 'Include/pystate.h')
-rw-r--r-- | Include/pystate.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 5a69e14..d004be5 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -143,6 +143,8 @@ typedef struct _is { /* AtExit module */ void (*pyexitfunc)(PyObject *); PyObject *pyexitmodule; + + uint64_t tstate_next_unique_id; } PyInterpreterState; #endif /* !Py_LIMITED_API */ @@ -270,6 +272,12 @@ typedef struct _ts { PyObject *async_gen_firstiter; PyObject *async_gen_finalizer; + PyObject *context; + uint64_t context_ver; + + /* Unique thread state id. */ + uint64_t id; + /* XXX signal handlers should also be here */ } PyThreadState; |