mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +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
|
|
@ -1809,7 +1809,7 @@ int
|
|||
PyThreadState_SetAsyncExc(unsigned long id, PyObject *exc)
|
||||
{
|
||||
_PyRuntimeState *runtime = &_PyRuntime;
|
||||
PyInterpreterState *interp = _PyRuntimeState_GetThreadState(runtime)->interp;
|
||||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||
|
||||
/* Although the GIL is held, a few C API functions can be called
|
||||
* without the GIL held, and in particular some that create and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue