File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ struct _frame;
15
15
16
16
#include "pycore_pystate.h" /* PyInterpreterState.eval_frame */
17
17
18
- PyAPI_FUNC (void ) _Py_FinishPendingCalls (struct pyruntimestate * runtime );
18
+ PyAPI_FUNC (void ) _Py_FinishPendingCalls (PyThreadState * tstate );
19
19
PyAPI_FUNC (void ) _PyEval_Initialize (struct _ceval_runtime_state * );
20
20
PyAPI_FUNC (void ) _PyEval_FiniThreads (
21
21
struct _ceval_runtime_state * ceval );
Original file line number Diff line number Diff line change @@ -585,11 +585,11 @@ make_pending_calls(_PyRuntimeState *runtime)
585
585
}
586
586
587
587
void
588
- _Py_FinishPendingCalls (_PyRuntimeState * runtime )
588
+ _Py_FinishPendingCalls (PyThreadState * tstate )
589
589
{
590
590
assert (PyGILState_Check ());
591
591
592
- PyThreadState * tstate = _PyRuntimeState_GetThreadState ( runtime ) ;
592
+ _PyRuntimeState * runtime = tstate -> interp -> runtime ;
593
593
struct _pending_calls * pending = & runtime -> ceval .pending ;
594
594
595
595
PyThread_acquire_lock (pending -> lock , WAIT_LOCK );
Original file line number Diff line number Diff line change @@ -1340,7 +1340,7 @@ Py_FinalizeEx(void)
1340
1340
wait_for_thread_shutdown (tstate );
1341
1341
1342
1342
// Make any remaining pending calls.
1343
- _Py_FinishPendingCalls (runtime );
1343
+ _Py_FinishPendingCalls (tstate );
1344
1344
1345
1345
/* The interpreter is still entirely intact at this point, and the
1346
1346
* exit funcs may be relying on that. In particular, if some thread
You can’t perform that action at this time.
0 commit comments