summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-03-09 05:47:07 (GMT)
committerGitHub <noreply@github.com>2019-03-09 05:47:07 (GMT)
commit5be45a6105d656c551adeee7770afdc3b806fbb5 (patch)
tree94cadf53fd4024b66375474529dbb8b97cbac549 /Include
parent7bda9de5504382931822baecba7f85028031c2cd (diff)
downloadcpython-5be45a6105d656c551adeee7770afdc3b806fbb5.zip
cpython-5be45a6105d656c551adeee7770afdc3b806fbb5.tar.gz
cpython-5be45a6105d656c551adeee7770afdc3b806fbb5.tar.bz2
bpo-33608: Minor cleanup related to pending calls. (gh-12247)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_ceval.h1
-rw-r--r--Include/internal/pycore_pystate.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index b9f2d7d..c8e09ba 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -12,7 +12,6 @@ extern "C" {
#include "pythread.h"
struct _pending_calls {
- unsigned long main_thread;
PyThread_type_lock lock;
/* Request for running pending calls. */
_Py_atomic_int calls_to_do;
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index 7796223..2b913de 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -31,6 +31,8 @@ struct _is {
int64_t id_refcount;
PyThread_type_lock id_mutex;
+ int finalizing;
+
PyObject *modules;
PyObject *modules_by_index;
PyObject *sysdict;
@@ -207,6 +209,8 @@ typedef struct pyruntimestate {
struct _xidregitem *head;
} xidregistry;
+ unsigned long main_thread;
+
#define NEXITFUNCS 32
void (*exitfuncs[NEXITFUNCS])(void);
int nexitfuncs;