mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
[3.13] gh-121621: Move asyncio_running_loop to private struct (GH-121939) (#121943)
gh-121621: Move asyncio_running_loop to private struct (GH-121939)
This avoids changing the ABI and keeps the field in the private struct.
(cherry picked from commit 81fd625b5c
)
Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
parent
a12c105908
commit
afa5321c6c
4 changed files with 8 additions and 8 deletions
|
@ -1499,7 +1499,7 @@ init_threadstate(_PyThreadStateImpl *_tstate,
|
|||
tstate->previous_executor = NULL;
|
||||
tstate->dict_global_version = 0;
|
||||
|
||||
tstate->asyncio_running_loop = NULL;
|
||||
_tstate->asyncio_running_loop = NULL;
|
||||
|
||||
tstate->delete_later = NULL;
|
||||
|
||||
|
@ -1702,7 +1702,7 @@ PyThreadState_Clear(PyThreadState *tstate)
|
|||
|
||||
/* Don't clear tstate->pyframe: it is a borrowed reference */
|
||||
|
||||
Py_CLEAR(tstate->asyncio_running_loop);
|
||||
Py_CLEAR(((_PyThreadStateImpl *)tstate)->asyncio_running_loop);
|
||||
|
||||
Py_CLEAR(tstate->dict);
|
||||
Py_CLEAR(tstate->async_exc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue