Skip to content

gh-133171: Make the executor_list thread-safe#140038

Closed
aisk wants to merge 7 commits intopython:mainfrom
aisk:executor-list-lock
Closed

gh-133171: Make the executor_list thread-safe#140038
aisk wants to merge 7 commits intopython:mainfrom
aisk:executor-list-lock

Conversation

@aisk
Copy link
Member

@aisk aisk commented Oct 13, 2025

The idea is simple and naive: just add a PyMutex to the PyInterpreterState for the executor_list under the nogil build, and lock or unlock the mutex in all functions that operate on the executor_list.

Since I'm not very familiar with the related code, there might be a better way to do this, so any feedback would be appreciated!

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