Skip to content

Commit 7bf9a1c

Browse files
committed
INTERP_THREAD_LOCK rename to INTERP_HEAD_LOCK
1 parent 2131d69 commit 7bf9a1c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Python/ceval.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,17 +2378,17 @@ PyEval_SetProfileAllThreads(Py_tracefunc func, PyObject *arg)
23782378
PyThreadState *this_tstate = _PyThreadState_GET();
23792379
PyInterpreterState *interp = this_tstate->interp;
23802380

2381-
INTERP_THREAD_LOCK(interp);
2381+
INTERP_HEAD_LOCK(interp);
23822382
PyThreadState* ts = PyInterpreterState_ThreadHead(interp);
2383-
INTERP_THREAD_UNLOCK(interp);
2383+
INTERP_HEAD_UNLOCK(interp);
23842384

23852385
while (ts) {
23862386
if (_PyEval_SetProfile(ts, func, arg) < 0) {
23872387
PyErr_FormatUnraisable("Exception ignored in PyEval_SetProfileAllThreads");
23882388
}
2389-
INTERP_THREAD_LOCK(interp);
2389+
INTERP_HEAD_LOCK(interp);
23902390
ts = PyThreadState_Next(ts);
2391-
INTERP_THREAD_UNLOCK(interp);
2391+
INTERP_HEAD_UNLOCK(interp);
23922392
}
23932393
}
23942394

@@ -2408,17 +2408,17 @@ PyEval_SetTraceAllThreads(Py_tracefunc func, PyObject *arg)
24082408
PyThreadState *this_tstate = _PyThreadState_GET();
24092409
PyInterpreterState *interp = this_tstate->interp;
24102410

2411-
INTERP_THREAD_LOCK(interp);
2411+
INTERP_HEAD_LOCK(interp);
24122412
PyThreadState* ts = PyInterpreterState_ThreadHead(interp);
2413-
INTERP_THREAD_UNLOCK(interp);
2413+
INTERP_HEAD_UNLOCK(interp);
24142414

24152415
while (ts) {
24162416
if (_PyEval_SetTrace(ts, func, arg) < 0) {
24172417
PyErr_FormatUnraisable("Exception ignored in PyEval_SetTraceAllThreads");
24182418
}
2419-
INTERP_THREAD_LOCK(interp);
2419+
INTERP_HEAD_LOCK(interp);
24202420
ts = PyThreadState_Next(ts);
2421-
INTERP_THREAD_UNLOCK(interp);
2421+
INTERP_HEAD_UNLOCK(interp);
24222422
}
24232423
}
24242424

0 commit comments

Comments
 (0)