@@ -2378,17 +2378,17 @@ PyEval_SetProfileAllThreads(Py_tracefunc func, PyObject *arg)
2378
2378
PyThreadState * this_tstate = _PyThreadState_GET ();
2379
2379
PyInterpreterState * interp = this_tstate -> interp ;
2380
2380
2381
- INTERP_THREAD_LOCK (interp );
2381
+ INTERP_HEAD_LOCK (interp );
2382
2382
PyThreadState * ts = PyInterpreterState_ThreadHead (interp );
2383
- INTERP_THREAD_UNLOCK (interp );
2383
+ INTERP_HEAD_UNLOCK (interp );
2384
2384
2385
2385
while (ts ) {
2386
2386
if (_PyEval_SetProfile (ts , func , arg ) < 0 ) {
2387
2387
PyErr_FormatUnraisable ("Exception ignored in PyEval_SetProfileAllThreads" );
2388
2388
}
2389
- INTERP_THREAD_LOCK (interp );
2389
+ INTERP_HEAD_LOCK (interp );
2390
2390
ts = PyThreadState_Next (ts );
2391
- INTERP_THREAD_UNLOCK (interp );
2391
+ INTERP_HEAD_UNLOCK (interp );
2392
2392
}
2393
2393
}
2394
2394
@@ -2408,17 +2408,17 @@ PyEval_SetTraceAllThreads(Py_tracefunc func, PyObject *arg)
2408
2408
PyThreadState * this_tstate = _PyThreadState_GET ();
2409
2409
PyInterpreterState * interp = this_tstate -> interp ;
2410
2410
2411
- INTERP_THREAD_LOCK (interp );
2411
+ INTERP_HEAD_LOCK (interp );
2412
2412
PyThreadState * ts = PyInterpreterState_ThreadHead (interp );
2413
- INTERP_THREAD_UNLOCK (interp );
2413
+ INTERP_HEAD_UNLOCK (interp );
2414
2414
2415
2415
while (ts ) {
2416
2416
if (_PyEval_SetTrace (ts , func , arg ) < 0 ) {
2417
2417
PyErr_FormatUnraisable ("Exception ignored in PyEval_SetTraceAllThreads" );
2418
2418
}
2419
- INTERP_THREAD_LOCK (interp );
2419
+ INTERP_HEAD_LOCK (interp );
2420
2420
ts = PyThreadState_Next (ts );
2421
- INTERP_THREAD_UNLOCK (interp );
2421
+ INTERP_HEAD_UNLOCK (interp );
2422
2422
}
2423
2423
}
2424
2424
0 commit comments