Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not break sequential execution while fixing parallel execution
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Jan 2019 11:23:16 +0000 (12:23 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Jan 2019 11:23:16 +0000 (12:23 +0100)
src/kernel/context/ContextSwapped.hpp

index 606dd44..a4fc733 100644 (file)
@@ -30,7 +30,7 @@ private:
   /* For the parallel execution */
   simgrid::xbt::Parmap<smx_actor_t>* parmap_;
   std::vector<SwappedContext*> workers_context_; /* space to save the worker's context in each thread */
-  std::atomic<uintptr_t> threads_working_;       /* number of threads that have started their work */
+  std::atomic<uintptr_t> threads_working_{0};    /* number of threads that have started their work */
 };
 
 class SwappedContext : public Context {