X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31a818b15a9657dd08268d473255481b2a2d197b..fa0bb7e4203ef24f51ea4f8d1a8abe376e4885d5:/src/kernel/context/ContextSwapped.hpp diff --git a/src/kernel/context/ContextSwapped.hpp b/src/kernel/context/ContextSwapped.hpp index 9e8796d53f..ad888cd9d5 100644 --- a/src/kernel/context/ContextSwapped.hpp +++ b/src/kernel/context/ContextSwapped.hpp @@ -8,6 +8,7 @@ #include "src/kernel/context/Context.hpp" +#include #include namespace simgrid { @@ -21,7 +22,6 @@ public: SwappedContextFactory(); SwappedContextFactory(const SwappedContextFactory&) = delete; SwappedContextFactory& operator=(const SwappedContextFactory&) = delete; - ~SwappedContextFactory() override; void run_all() override; private: @@ -30,7 +30,7 @@ private: unsigned long process_index_ = 0; // Next actor to execute during sequential run_all() /* For the parallel execution */ - simgrid::xbt::Parmap* parmap_; + std::unique_ptr> parmap_; std::vector workers_context_; /* space to save the worker's context in each thread */ std::atomic threads_working_{0}; /* number of threads that have started their work */ };