File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 88#include "pycore_freelist.h" // _Py_FREELIST_POP()
99#include "pycore_modsupport.h" // _PyArg_CheckPositional()
1010#include "pycore_moduleobject.h" // _PyModule_GetState()
11- #include "pycore_object.h" // _Py_SetImmortalUntracked
11+ #include "pycore_object.h" // _Py_SetImmortalUntracked()
1212#include "pycore_pyerrors.h" // _PyErr_ClearExcState()
1313#include "pycore_pylifecycle.h" // _Py_IsInterpreterFinalizing()
1414#include "pycore_pystate.h" // _PyThreadState_GET()
@@ -77,15 +77,8 @@ typedef struct {
7777#define Future_Check (state , obj ) PyObject_TypeCheck(obj, state->FutureType)
7878#define Task_Check (state , obj ) PyObject_TypeCheck(obj, state->TaskType)
7979
80- #ifdef Py_GIL_DISABLED
81- # define ASYNCIO_STATE_LOCK (state ) Py_BEGIN_CRITICAL_SECTION_MUT(&state->mutex)
82- # define ASYNCIO_STATE_UNLOCK (state ) Py_END_CRITICAL_SECTION()
83- #else
84- # define ASYNCIO_STATE_LOCK (state ) ((void)state)
85- # define ASYNCIO_STATE_UNLOCK (state ) ((void)state)
86- #endif
87-
88- typedef struct futureiterobject futureiterobject ;
80+ #define ASYNCIO_STATE_LOCK (state ) Py_BEGIN_CRITICAL_SECTION_MUT(&state->mutex)
81+ #define ASYNCIO_STATE_UNLOCK (state ) Py_END_CRITICAL_SECTION()
8982
9083/* State of the _asyncio module */
9184typedef struct {
You can’t perform that action at this time.
0 commit comments