summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-05 13:43:37 (GMT)
committerGitHub <noreply@github.com>2020-05-05 13:43:37 (GMT)
commit4e01946cafca0cf49f796c3118e0d65237bcad69 (patch)
tree754267420acd250b7cd0368c8679fbaee72bb2ee /Include/internal
parentf01d1be97d740ea0369379ca305646a26694236e (diff)
downloadcpython-4e01946cafca0cf49f796c3118e0d65237bcad69.zip
cpython-4e01946cafca0cf49f796c3118e0d65237bcad69.tar.gz
cpython-4e01946cafca0cf49f796c3118e0d65237bcad69.tar.bz2
bpo-40513: Per-interpreter signals pending (GH-19924)
Move signals_pending from _PyRuntime.ceval to PyInterpreterState.ceval.
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_interp.h2
-rw-r--r--Include/internal/pycore_runtime.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h
index 6e9937c..251ee06 100644
--- a/Include/internal/pycore_interp.h
+++ b/Include/internal/pycore_interp.h
@@ -43,6 +43,8 @@ struct _ceval_state {
the fast path in the eval loop. */
_Py_atomic_int eval_breaker;
struct _pending_calls pending;
+ /* Request for checking signals. */
+ _Py_atomic_int signals_pending;
};
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h
index 995fe23..d432c6c 100644
--- a/Include/internal/pycore_runtime.h
+++ b/Include/internal/pycore_runtime.h
@@ -17,8 +17,6 @@ struct _ceval_runtime_state {
int recursion_limit;
/* Request for dropping the GIL */
_Py_atomic_int gil_drop_request;
- /* Request for checking signals. */
- _Py_atomic_int signals_pending;
struct _gil_runtime_state gil;
};