diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 3ac799c..6584cda 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -53,7 +53,9 @@ static PyInterpreterState *interp_head = NULL; PyThreadState *_PyThreadState_Current = NULL; PyThreadFrameGetter _PyThreadState_GetFrame = NULL; +#ifdef WITH_THREAD static void _PyGILState_NoteThreadState(PyThreadState* tstate); +#endif PyInterpreterState * @@ -188,7 +190,9 @@ PyThreadState_New(PyInterpreterState *interp) tstate->c_profileobj = NULL; tstate->c_traceobj = NULL; +#ifdef WITH_THREAD _PyGILState_NoteThreadState(tstate); +#endif HEAD_LOCK(); tstate->next = interp->tstate_head; |