diff options
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Python/pystate.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -552,6 +552,7 @@ Eric Groo Daniel Andrade Groppe Dag Gruneau Filip GruszczyĆski +Andrii Grynenko Grzegorz Grzywacz Thomas Guettler Yuyang Guo diff --git a/Python/pystate.c b/Python/pystate.c index 65c244e..ccb0092 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -743,6 +743,10 @@ _PyGILState_Fini(void) void _PyGILState_Reinit(void) { +#ifdef WITH_THREAD + head_mutex = NULL; + HEAD_INIT(); +#endif PyThreadState *tstate = PyGILState_GetThisThreadState(); PyThread_delete_key(autoTLSkey); if ((autoTLSkey = PyThread_create_key()) == -1) |