diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_threadmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index 2ba081d..cde2e0b 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -6,7 +6,7 @@ #include "pycore_interp.h" // _PyInterpreterState.threads.count #include "pycore_moduleobject.h" // _PyModule_GetState() #include "pycore_pylifecycle.h" -#include "pycore_pystate.h" // _PyThreadState_Init() +#include "pycore_pystate.h" // _PyThreadState_SetCurrent() #include <stddef.h> // offsetof() #include "structmember.h" // PyMemberDef @@ -1087,7 +1087,7 @@ thread_run(void *boot_raw) #else tstate->native_thread_id = 0; #endif - _PyThreadState_Init(tstate); + _PyThreadState_SetCurrent(tstate); PyEval_AcquireThread(tstate); tstate->interp->threads.count++; |