mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-103323: Remove PyRuntimeState_GetThreadState() (#104171)
This function no longer makes sense, since its runtime parameter is no longer used. Use directly _PyThreadState_GET() and _PyInterpreterState_GET() instead.
This commit is contained in:
parent
eba64d2afb
commit
45398ad512
5 changed files with 9 additions and 17 deletions
|
@ -365,7 +365,7 @@ PySys_AddAuditHook(Py_AuditHookFunction hook, void *userData)
|
|||
_PyRuntimeState *runtime = &_PyRuntime;
|
||||
PyThreadState *tstate;
|
||||
if (runtime->initialized) {
|
||||
tstate = _PyRuntimeState_GetThreadState(runtime);
|
||||
tstate = _PyThreadState_GET();
|
||||
}
|
||||
else {
|
||||
tstate = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue