Skip to content

Commit 4249c5d

Browse files
committed
Bikeshedding.
1 parent d661578 commit 4249c5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python/pylifecycle.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static PyStatus init_android_streams(PyThreadState *tstate);
9898
static PyStatus init_apple_streams(PyThreadState *tstate);
9999
#endif
100100
static 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);
102102
static void finalize_subinterpreters(void);
103103
static 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. */
34773477
static 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

Comments
 (0)