8000 bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). by ericsnowcurrently · Pull Request #12360 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). #12360

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
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
Release the pending calls lock *after* updating the eval breaker flag.
  • Loading branch information
ericsnowcurrently committed Apr 5, 2019
commit 991e3fb840e7684a44abf0743dba84f798ca55eb
4 changes: 2 additions & 2 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ _Py_AddPendingCall(PyInterpreterState *interp, int (*func)(void *), void *arg)
return -1;
}
int result = _push_pending_call(pending, func, arg);
PyThread_release_lock(pending->lock);

/* signal main loop */
SIGNAL_PENDING_CALLS();
PyThread_release_lock(pending->lock);

return result;
}

Expand Down
0