From: Martin Quinson Date: Mon, 7 Jan 2019 11:23:16 +0000 (+0100) Subject: do not break sequential execution while fixing parallel execution X-Git-Tag: v3_22~662 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/346a809e5392ea254135c1ff42b0bb8924ae8971 do not break sequential execution while fixing parallel execution --- diff --git a/src/kernel/context/ContextSwapped.hpp b/src/kernel/context/ContextSwapped.hpp index 606dd447ce..a4fc733a51 100644 --- a/src/kernel/context/ContextSwapped.hpp +++ b/src/kernel/context/ContextSwapped.hpp @@ -30,7 +30,7 @@ private: /* For the parallel execution */ simgrid::xbt::Parmap* parmap_; std::vector workers_context_; /* space to save the worker's context in each thread */ - std::atomic threads_working_; /* number of threads that have started their work */ + std::atomic threads_working_{0}; /* number of threads that have started their work */ }; class SwappedContext : public Context {