From: Anthony Geay Date: Wed, 5 Apr 2017 15:19:27 +0000 (+0200) Subject: Correction of invocation of Python using multi threads X-Git-Tag: V8_3_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=125ef407843e353a9450d2582f7d1d6d7fbfb48b;p=modules%2Fgui.git Correction of invocation of Python using multi threads --- 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 } }