diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-05 18:27:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 18:27:47 (GMT) |
commit | 7be4e350aadf93c4be5c97b7291d0db2b6bc1dc4 (patch) | |
tree | 7285b6051ef96253ce4ef2ac2a34412fae9ea281 /Include/internal/pycore_runtime.h | |
parent | 0dd5e7a718997da2026ed64fe054dc36cae4fee7 (diff) | |
download | cpython-7be4e350aadf93c4be5c97b7291d0db2b6bc1dc4.zip cpython-7be4e350aadf93c4be5c97b7291d0db2b6bc1dc4.tar.gz cpython-7be4e350aadf93c4be5c97b7291d0db2b6bc1dc4.tar.bz2 |
bpo-40513: Per-interpreter GIL (GH-19943)
In the experimental isolated subinterpreters build mode, the GIL is
now per-interpreter.
Move gil from _PyRuntimeState.ceval to PyInterpreterState.ceval.
new_interpreter() always get the config from the main interpreter.
Diffstat (limited to 'Include/internal/pycore_runtime.h')
-rw-r--r-- | Include/internal/pycore_runtime.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h index 34eb492..ebdc12b 100644 --- a/Include/internal/pycore_runtime.h +++ b/Include/internal/pycore_runtime.h @@ -19,7 +19,9 @@ struct _ceval_runtime_state { the main thread of the main interpreter can handle signals: see _Py_ThreadCanHandleSignals(). */ _Py_atomic_int signals_pending; +#ifndef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS struct _gil_runtime_state gil; +#endif }; /* GIL state */ |