Mercurial > cpython-lru_cache-weakref
diff Python/pystate.c @ 35660:6d04cb2cdd4a 2.4
Fix bug:
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)
(note that this only happens in a threads-disabled build).
Will forward port momentarily.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Fri, 30 Sep 2005 08:17:40 +0000 |
| parents | c260d3b7d582 |
| children | 7d0f12340c9e |
line wrap: on
line diff
--- a/Python/pystate.c Fri Sep 30 04:58:23 2005 +0000 +++ b/Python/pystate.c Fri Sep 30 08:17:40 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;
