Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61bfb73 commit f9ce67dCopy full SHA for f9ce67d
1 file changed
Python/pystate.c
@@ -144,7 +144,11 @@ PyThreadState_New(PyInterpreterState *interp)
144
tstate->tick_counter = 0;
145
tstate->gilstate_counter = 0;
146
tstate->async_exc = NULL;
147
+#ifdef WITH_THREAD
148
tstate->thread_id = PyThread_get_thread_ident();
149
+#else
150
+ tstate->thread_id = 0;
151
+#endif
152
153
tstate->dict = NULL;
154
0 commit comments