Mercurial > cpython-lru_cache-weakref
diff Python/pystate.c @ 35661:85651eb3d9a9 legacy-trunk
Forward port bugfix:
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)
(note that this only happens in a threads-disabled build).
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Fri, 30 Sep 2005 08:20:24 +0000 |
| parents | 7ea2be2c0e1d |
| children | da2a1049215d |
line wrap: on
line diff
--- a/Python/pystate.c Fri Sep 30 04:46:49 2005 +0000 +++ b/Python/pystate.c Fri Sep 30 08:20:24 2005 +0000 @@ -53,7 +53,9 @@ PyThreadState *_PyThreadState_Current = NULL; PyThreadFrameGetter _PyThreadState_GetFrame = NULL; +#ifdef WITH_THREAD static void _PyGILState_NoteThreadState(PyThreadState* tstate); +#endif PyInterpreterState * @@ -188,7 +190,9 @@ tstate->c_profileobj = NULL; tstate->c_traceobj = NULL; +#ifdef WITH_THREAD _PyGILState_NoteThreadState(tstate); +#endif HEAD_LOCK(); tstate->next = interp->tstate_head;
