diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-05 15:40:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 15:40:18 (GMT) |
commit | 299b8c61e9d1a42b929b8deb1b05067876e191e6 (patch) | |
tree | 5ccfb0f8cb42140124af3fe5018dfdd6b3d7b8a1 /Include/internal/pycore_runtime.h | |
parent | 6351d9e4400a77fe1fcbe4f03e5fb6620cca236d (diff) | |
download | cpython-299b8c61e9d1a42b929b8deb1b05067876e191e6.zip cpython-299b8c61e9d1a42b929b8deb1b05067876e191e6.tar.gz cpython-299b8c61e9d1a42b929b8deb1b05067876e191e6.tar.bz2 |
Revert "bpo-40513: Per-interpreter signals pending (GH-19924)" (GH-19932)
This reverts commit 4e01946cafca0cf49f796c3118e0d65237bcad69.
Diffstat (limited to 'Include/internal/pycore_runtime.h')
-rw-r--r-- | Include/internal/pycore_runtime.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h index 8ca1dfb..34eb492 100644 --- a/Include/internal/pycore_runtime.h +++ b/Include/internal/pycore_runtime.h @@ -14,6 +14,11 @@ extern "C" { /* ceval state */ struct _ceval_runtime_state { + /* Request for checking signals. It is shared by all interpreters (see + bpo-40513). Any thread of any interpreter can receive a signal, but only + the main thread of the main interpreter can handle signals: see + _Py_ThreadCanHandleSignals(). */ + _Py_atomic_int signals_pending; struct _gil_runtime_state gil; }; |