mirror of
https://github.com/python/cpython.git
synced 2025-09-07 01:11:26 +00:00
Oops, one more checkin. Use the new tstate/interp interface.
This commit is contained in:
parent
25ce566661
commit
b02158efa3
1 changed files with 2 additions and 1 deletions
|
@ -224,6 +224,7 @@ t_bootstrap(boot_raw)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Py_DECREF(res);
|
Py_DECREF(res);
|
||||||
|
PyThreadState_Clear(tstate);
|
||||||
PyEval_ReleaseThread(tstate);
|
PyEval_ReleaseThread(tstate);
|
||||||
PyThreadState_Delete(tstate);
|
PyThreadState_Delete(tstate);
|
||||||
exit_thread();
|
exit_thread();
|
||||||
|
@ -257,7 +258,7 @@ thread_start_new_thread(self, fargs)
|
||||||
boot = PyMem_NEW(struct bootstate, 1);
|
boot = PyMem_NEW(struct bootstate, 1);
|
||||||
if (boot == NULL)
|
if (boot == NULL)
|
||||||
return PyErr_NoMemory();
|
return PyErr_NoMemory();
|
||||||
boot->interp = PyThreadState_Get()->interpreter_state;
|
boot->interp = PyThreadState_Get()->interp;
|
||||||
boot->func = func;
|
boot->func = func;
|
||||||
boot->args = args;
|
boot->args = args;
|
||||||
boot->keyw = keyw;
|
boot->keyw = keyw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue