diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-05 14:14:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 14:14:31 (GMT) |
commit | 0b1e3307e24b0af45787ab6456535b8346e0239a (patch) | |
tree | a1dc53188efc9af1478f3c9fe707bbaac02f1224 /Include | |
parent | 4e01946cafca0cf49f796c3118e0d65237bcad69 (diff) | |
download | cpython-0b1e3307e24b0af45787ab6456535b8346e0239a.zip cpython-0b1e3307e24b0af45787ab6456535b8346e0239a.tar.gz cpython-0b1e3307e24b0af45787ab6456535b8346e0239a.tar.bz2 |
bpo-40513: Per-interpreter gil_drop_request (GH-19927)
Move gil_drop_request member from _PyRuntimeState.ceval to
PyInterpreterState.ceval.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_interp.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_runtime.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index 251ee06..fafc72e 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -42,6 +42,8 @@ struct _ceval_state { /* This single variable consolidates all requests to break out of the fast path in the eval loop. */ _Py_atomic_int eval_breaker; + /* Request for dropping the GIL */ + _Py_atomic_int gil_drop_request; 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 d432c6c..c597335 100644 --- a/Include/internal/pycore_runtime.h +++ b/Include/internal/pycore_runtime.h @@ -15,8 +15,6 @@ extern "C" { struct _ceval_runtime_state { int recursion_limit; - /* Request for dropping the GIL */ - _Py_atomic_int gil_drop_request; struct _gil_runtime_state gil; }; |