From 125ef407843e353a9450d2582f7d1d6d7fbfb48b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 5 Apr 2017 17:19:27 +0200 Subject: [PATCH] Correction of invocation of Python using multi threads --- tools/PyInterp/src/PyInterp_Interp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/PyInterp/src/PyInterp_Interp.cxx b/tools/PyInterp/src/PyInterp_Interp.cxx index ebee5fda2..200649073 100644 --- a/tools/PyInterp/src/PyInterp_Interp.cxx +++ b/tools/PyInterp/src/PyInterp_Interp.cxx @@ -247,7 +247,7 @@ void PyInterp_Interp::initPython() PySys_SetArgv(_argc, _argv); PyEval_InitThreads(); // Create (and acquire) the Python global interpreter lock (GIL) - PyEval_ReleaseLock(); + PyEval_SaveThread(); // release safely GIL } } -- 2.30.2