Kaydet (Commit) b02158ef authored tarafından Guido van Rossum's avatar Guido van Rossum

Oops, one more checkin. Use the new tstate/interp interface.

üst 25ce5666
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment