mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-38644: Pass tstate to _Py_FinishPendingCalls() (GH-17990)
_Py_FinishPendingCalls() now expects a tstate argument, instead of a runtime argument.
This commit is contained in:
parent
3430c55417
commit
2b1df4592e
3 changed files with 4 additions and 4 deletions
|
@ -585,11 +585,11 @@ error:
|
|||
}
|
||||
|
||||
void
|
||||
_Py_FinishPendingCalls(_PyRuntimeState *runtime)
|
||||
_Py_FinishPendingCalls(PyThreadState *tstate)
|
||||
{
|
||||
assert(PyGILState_Check());
|
||||
|
||||
PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime);
|
||||
_PyRuntimeState *runtime = tstate->interp->runtime;
|
||||
struct _pending_calls *pending = &runtime->ceval.pending;
|
||||
|
||||
PyThread_acquire_lock(pending->lock, WAIT_LOCK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue