]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction of invocation of Python using multi threads agy/PyThreadSave
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 5 Apr 2017 15:19:27 +0000 (17:19 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 5 Apr 2017 15:19:27 +0000 (17:19 +0200)
tools/PyInterp/src/PyInterp_Interp.cxx

index ebee5fda2592327efb1e5629bbcd6fddbb88c945..200649073b1b9596541e719825ed09b1b153d990 100644 (file)
@@ -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
   }
 }