mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-81057: Move More Globals in Core Code to _PyRuntimeState (gh-99516)
https://github.com/python/cpython/issues/81057
This commit is contained in:
parent
5cfb7d19f5
commit
5f55067e23
24 changed files with 241 additions and 130 deletions
|
@ -819,11 +819,10 @@ make_pending_calls(PyInterpreterState *interp)
|
|||
}
|
||||
|
||||
/* don't perform recursive pending calls */
|
||||
static int busy = 0;
|
||||
if (busy) {
|
||||
if (interp->ceval.pending.busy) {
|
||||
return 0;
|
||||
}
|
||||
busy = 1;
|
||||
interp->ceval.pending.busy = 1;
|
||||
|
||||
/* unsignal before starting to call callbacks, so that any callback
|
||||
added in-between re-signals */
|
||||
|
@ -851,11 +850,11 @@ make_pending_calls(PyInterpreterState *interp)
|
|||
}
|
||||
}
|
||||
|
||||
busy = 0;
|
||||
interp->ceval.pending.busy = 0;
|
||||
return res;
|
||||
|
||||
error:
|
||||
busy = 0;
|
||||
interp->ceval.pending.busy = 0;
|
||||
SIGNAL_PENDING_CALLS(interp);
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue