8000 gh-111924: Use PyMutex for runtime global locks. by colesbury · Pull Request #112207 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111924: Use PyMutex for runtime global locks. #112207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use _PyMutex_at_fork_reinit in ceval_gil.c
  • Loading branch information
colesbury committed Dec 7, 2023
commit 3ab46f59334a1c985085d6627301405916ddab01
2 changes: 1 addition & 1 deletion Python/ceval_gil.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ _PyEval_ReInitThreads(PyThreadState *tstate)
take_gil(tstate);

struct _pending_calls *pending = &tstate->interp->ceval.pending;
pending->mutex = (PyMutex){0};
_PyMutex_at_fork_reinit(&pending->mutex);

/* Destroy all threads except the current one */
_PyThreadState_DeleteExcept(tstate);
Expand Down
0