From 85d1016dffbad89e25225816ecc877400719eeb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Picot?= Date: Sun, 8 Dec 2019 13:18:11 +0100 Subject: [PATCH] [BUGFIX] fix python38 compilation (#647) --- libsrc/effectengine/Effect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/effectengine/Effect.cpp b/libsrc/effectengine/Effect.cpp index 11fec026..b408d314 100644 --- a/libsrc/effectengine/Effect.cpp +++ b/libsrc/effectengine/Effect.cpp @@ -213,7 +213,7 @@ void Effect::run() Py_DECREF(main_dict); // release "main_dict" when done } // stop sub threads if needed - for (PyThreadState* s = tstate->interp->tstate_head, *old = nullptr; s;) + for (PyThreadState* s = PyInterpreterState_ThreadHead(tstate->interp), *old = nullptr; s;) { if (s == tstate) { @@ -230,7 +230,7 @@ void Effect::run() msleep(100); Py_END_ALLOW_THREADS; - s = tstate->interp->tstate_head; + s = PyInterpreterState_ThreadHead(tstate->interp); } // Clean up the thread state