@@ -98,7 +98,7 @@ static PyStatus init_android_streams(PyThreadState *tstate);
9898static PyStatus init_apple_streams (PyThreadState * tstate );
9999#endif
100100static void wait_for_thread_shutdown (PyThreadState * tstate );
101- static void wait_for_native_shutdown (PyInterpreterState * interp );
101+ static void wait_for_interp_references (PyInterpreterState * interp );
102102static void finalize_subinterpreters (void );
103103static void call_ll_exitfuncs (_PyRuntimeState * runtime );
104104
@@ -2025,7 +2025,7 @@ _Py_Finalize(_PyRuntimeState *runtime)
20252025 wait_for_thread_shutdown (tstate );
20262026
20272027 // Wait for the interpreter's reference count to reach zero
2028- wait_for_native_shutdown (tstate -> interp );
2028+ wait_for_interp_references (tstate -> interp );
20292029
20302030 // Make any remaining pending calls.
20312031 _Py_FinishPendingCalls (tstate );
@@ -2444,7 +2444,7 @@ Py_EndInterpreter(PyThreadState *tstate)
24442444 wait_for_thread_shutdown (tstate );
24452445
24462446 // Wait for the interpreter's reference count to reach zero
2447- wait_for_native_shutdown (tstate -> interp );
2447+ wait_for_interp_references (tstate -> interp );
24482448
24492449 // Make any remaining pending calls.
24502450 _Py_FinishPendingCalls (tstate );
@@ -3472,10 +3472,10 @@ wait_for_thread_shutdown(PyThreadState *tstate)
34723472 Py_DECREF (threading );
34733473}
34743474
3475- /* Wait for all non-daemon native threads to finish .
3475+ /* Wait for the interpreter's reference count to reach zero .
34763476 See PEP 788. */
34773477static void
3478- wait_for_native_shutdown (PyInterpreterState * interp )
3478+ wait_for_interp_references (PyInterpreterState * interp )
34793479{
34803480 assert (interp != NULL );
34813481 struct _Py_finalizing_threads * finalizing = & interp -> threads .finalizing ;
0 commit comments