Skip to content

gh-104812: Run Pending Calls in any Thread#104813

Merged
ericsnowcurrently merged 33 commits intopython:mainfrom
ericsnowcurrently:per-interpreter-pending-calls
Jun 13, 2023
Merged

gh-104812: Run Pending Calls in any Thread#104813
ericsnowcurrently merged 33 commits intopython:mainfrom
ericsnowcurrently:per-interpreter-pending-calls

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 23, 2023

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.

(For reviewers: almost all of the significant change is in ceval_gil.c. The bulk of this PR's diff is comprised of tests and a long comment about the eval breaker.)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants