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_interp.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_interp.h')
-rw-r--r-- | Include/internal/pycore_interp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index 5bf8998..26e7a47 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -46,6 +46,9 @@ struct _ceval_state { /* Request for dropping the GIL */ _Py_atomic_int gil_drop_request; struct _pending_calls pending; +#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS + struct _gil_runtime_state gil; +#endif }; |