Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c4cd07
)
Correction of invocation of Python using multi threads
agy/PyThreadSave
author
Anthony Geay
<anthony.geay@edf.fr>
Wed, 5 Apr 2017 15:19:27 +0000
(17:19 +0200)
committer
Anthony Geay
<anthony.geay@edf.fr>
Wed, 5 Apr 2017 15:19:27 +0000
(17:19 +0200)
tools/PyInterp/src/PyInterp_Interp.cxx
patch
|
blob
|
history
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
}
}