]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 14 Jun 2023 00:50:08 +0000 (18:50 -0600)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 00:50:08 +0000 (00:50 +0000)
commit33d3069c45bda38f52053a115e3c0810cd631dd6
treeee49a043f3960473e891ce9a1a4be3abee2a878c
parent75239d5ec1505b8f9f20d3c2d366c1a3ebd269aa
[3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752)

For a while now, pending calls only run in the main thread (in the main interpreter).  This PR changes things to allow any thread run a pending call, unless the pending call was explicitly added for the main thread to run.
(cherry picked from commit 757b402)
17 files changed:
Doc/data/python3.12.abi
Include/cpython/ceval.h
Include/internal/pycore_ceval.h
Include/internal/pycore_ceval_state.h
Include/internal/pycore_pystate.h
Lib/test/support/threading_helper.py
Lib/test/test_capi/test_misc.py
Misc/NEWS.d/next/Core and Builtins/2023-06-02-15-15-41.gh-issue-104812.dfZiG5.rst [new file with mode: 0644]
Modules/_queuemodule.c
Modules/_testinternalcapi.c
Modules/_threadmodule.c
Modules/signalmodule.c
Python/ceval.c
Python/ceval_gil.c
Python/pylifecycle.c
Python/pystate.c
Tools/c-analyzer/cpython/ignored.tsv