Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correction of invocation of Python using multi threads
[modules/gui.git]
/
tools
/
PyInterp
/
src
/
PyInterp_Interp.cxx
diff --git
a/tools/PyInterp/src/PyInterp_Interp.cxx
b/tools/PyInterp/src/PyInterp_Interp.cxx
index ebee5fda2592327efb1e5629bbcd6fddbb88c945..200649073b1b9596541e719825ed09b1b153d990 100644
(file)
--- 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
}
}