Browse Source
bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter (GH-19087)
bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter (GH-19087)
COMPUTE_EVAL_BREAKER() now also checks if the Python thread state belongs to the main interpreter. Don't break the evaluation loop if there are pending signals but the Python thread state it belongs to a subinterpeter. * Add _Py_IsMainThread() function. * Add _Py_ThreadCanHandleSignals() function.pull/19091/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 53 deletions
-
12Doc/library/signal.rst
-
28Include/internal/pycore_pystate.h
-
29Modules/signalmodule.c
-
27Python/ceval.c
-
6Python/pystate.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue