From d1bb4ae5dee2f452e092f6b19cce49186cb9c795 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@uliege.be> Date: Tue, 21 Jun 2022 09:32:58 +0200 Subject: [PATCH] missing critical section in logger callback (cf. #1807) --- CHANGELOG.txt | 2 ++ src/common/gmsh.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f6da63ffe5..d721b81ffc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,5 @@ +(Work-in-progress): small bug fixes. + 4.10.4 (June 19, 2022): improved graphical window tooltips; small bug fixes. * New API function: mesh/removeDuplicateElements diff --git a/src/common/gmsh.cpp b/src/common/gmsh.cpp index 5c8c233b29..62eaa70e75 100644 --- a/src/common/gmsh.cpp +++ b/src/common/gmsh.cpp @@ -8596,6 +8596,7 @@ public: apiMsg() {} virtual void operator()(std::string level, std::string message) { +#pragma omp critical _log.push_back(level + ": " + message); } void get(std::vector<std::string> &log) const { log = _log; } -- GitLab