]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104812: Run Pending Calls in any Thread (gh-104813)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 13 Jun 2023 21:02:19 +0000 (15:02 -0600)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 21:02:19 +0000 (15:02 -0600)
commit757b402ea1c2c6b925a55a08fd844b065b6e082f
treecf4f2ea1aff52a2c7faa7181f3f9af01f732830f
parent4e80082723b768df124f77d2b73b3ba6b584a735
gh-104812: Run Pending Calls in any Thread (gh-104813)

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.
16 files changed:
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