summaryrefslogtreecommitdiff
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-01-22 19:11:18 -0500
committerGitHub <noreply@github.com>2018-01-22 19:11:18 -0500
commitf23746a934177c48eff754411aba54c31d6be2f0 (patch)
tree4b32964b53fa87701f71c71937792f2489b7bbb4 /Include/pystate.h
parent9089a265918754d95e105a7c4c409ac9352c87bb (diff)
downloadcpython-git-f23746a934177c48eff754411aba54c31d6be2f0.tar.gz
bpo-32436: Implement PEP 567 (#5027)
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 5a69e1471a..d004be5e90 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;