]> granicus.if.org Git - python/commitdiff
Oops, one more checkin. Use the new tstate/interp interface.
authorGuido van Rossum <guido@python.org>
Sat, 2 Aug 1997 03:13:11 +0000 (03:13 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 2 Aug 1997 03:13:11 +0000 (03:13 +0000)
Modules/threadmodule.c

index 22017992a546be802a4bde347456dd17dc7abf65..49cefcc8d9061c387263fab54fe22a1952f40a6b 100644 (file)
@@ -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;