summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-02 03:13:11 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-02 03:13:11 (GMT)
commitb02158efa335902db30d842483a409b43bd2db69 (patch)
tree749faa6d5781aaa5d553df594b12d9a124866074
parent25ce566661c1b7446b3ddb4076513a62f93ce08d (diff)
downloadcpython-b02158efa335902db30d842483a409b43bd2db69.zip
cpython-b02158efa335902db30d842483a409b43bd2db69.tar.gz
cpython-b02158efa335902db30d842483a409b43bd2db69.tar.bz2
Oops, one more checkin. Use the new tstate/interp interface.
-rw-r--r--Modules/threadmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 2201799..49cefcc 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -224,6 +224,7 @@ t_bootstrap(boot_raw)
}
else
Py_DECREF(res);
+ PyThreadState_Clear(tstate);
PyEval_ReleaseThread(tstate);
PyThreadState_Delete(tstate);
exit_thread();
@@ -257,7 +258,7 @@ thread_start_new_thread(self, fargs)
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;