Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 5927:63bc9289ab28 legacy-trunk
Oops, one more checkin. Use the new tstate/interp interface.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 02 Aug 1997 03:13:11 +0000 |
| parents | ff9c0110079b |
| children | 2c29b8982643 |
line wrap: on
line diff
--- a/Modules/threadmodule.c Sat Aug 02 03:10:38 1997 +0000 +++ b/Modules/threadmodule.c Sat Aug 02 03:13:11 1997 +0000 @@ -224,6 +224,7 @@ } else Py_DECREF(res); + PyThreadState_Clear(tstate); PyEval_ReleaseThread(tstate); PyThreadState_Delete(tstate); exit_thread(); @@ -257,7 +258,7 @@ boot = PyMem_NEW(struct bootstate, 1); if (boot == NULL) return PyErr_NoMemory(); - boot->interp = PyThreadState_Get()->interpreter_state; + boot->interp = PyThreadState_Get()->interp; boot->func = func; boot->args = args; boot->keyw = keyw;
