mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -68,8 +68,6 @@ struct _ts {
|
|||
pycore_ceval.h. */
|
||||
uintptr_t eval_breaker;
|
||||
|
||||
PyObject *asyncio_running_loop; // Strong reference
|
||||
|
||||
struct {
|
||||
/* Has been initialized to a safe state.
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ typedef struct _PyThreadStateImpl {
|
|||
// semi-public fields are in PyThreadState.
|
||||
PyThreadState base;
|
||||
|
||||
PyObject *asyncio_running_loop; // Strong reference
|
||||
|
||||
struct _qsbr_thread_state *qsbr; // only used by free-threaded build
|
||||
struct llist_node mem_free_queue; // delayed free queue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue