diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-07 21:03:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 21:03:47 (GMT) |
commit | 313f92a57bc3887026ec16adb536bb2b7580ce47 (patch) | |
tree | 65ddd994ed926fb46d2c24628b94f24667f6f385 /Python/pylifecycle.c | |
parent | 8262c96bcc1841188866c1b022d9087e89639d98 (diff) | |
download | cpython-313f92a57bc3887026ec16adb536bb2b7580ce47.zip cpython-313f92a57bc3887026ec16adb536bb2b7580ce47.tar.gz cpython-313f92a57bc3887026ec16adb536bb2b7580ce47.tar.bz2 |
bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971)
This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads.
https://bugs.python.org/issue46008
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 84b76ea..f648dda 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -2043,7 +2043,7 @@ Py_EndInterpreter(PyThreadState *tstate) _PyAtExit_Call(tstate->interp); - if (tstate != interp->tstate_head || tstate->next != NULL) { + if (tstate != interp->threads.head || tstate->next != NULL) { Py_FatalError("not the last thread"); } |