Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 16140:38dcec06617b legacy-trunk
Use PyThreadState_DeleteCurrent() instead of PyThreadState_Delete()
and PyEval_ReleaseThread().
This fixes SF bug #125673 PyThreadState_Delete: invalid tstate (Unix
only?).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 23 Jan 2001 01:47:18 +0000 |
| parents | 1f4a9ade30ec |
| children | 241ef8a923c7 |
line wrap: on
line diff
--- a/Modules/threadmodule.c Tue Jan 23 01:46:06 2001 +0000 +++ b/Modules/threadmodule.c Tue Jan 23 01:47:18 2001 +0000 @@ -204,8 +204,7 @@ else Py_DECREF(res); PyThreadState_Clear(tstate); - PyEval_ReleaseThread(tstate); - PyThreadState_Delete(tstate); + PyThreadState_DeleteCurrent(); PyThread_exit_thread(); }
