From 5fd97b2fcb02fd1ee03c5c6ec528899dfbdb91f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Tue, 8 Sep 2020 10:57:11 +0200 Subject: [PATCH] DOC: add comment on GIL acquisition in PythonLogOutput --- Modules/Wrappers/SWIG/src/python/otbPythonLogOutput.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Wrappers/SWIG/src/python/otbPythonLogOutput.cxx b/Modules/Wrappers/SWIG/src/python/otbPythonLogOutput.cxx index a924de7a16..6a36c88c4c 100644 --- a/Modules/Wrappers/SWIG/src/python/otbPythonLogOutput.cxx +++ b/Modules/Wrappers/SWIG/src/python/otbPythonLogOutput.cxx @@ -34,6 +34,8 @@ void PythonLogOutput::Write(double timestamp) void PythonLogOutput::Write(std::string const& content) { + // Note : Reacuiring the GIL before calling the callback doesn' seems to be + // necessary with thread=1 and director classes m_Callback->Call(content); } -- GitLab