X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7bb17ddd75ab3ce5dfa097e58a31fe5b3314a304..31d00d99590955a66d0e575e9af34e48736bab79:/src/kernel/context/ContextSwapped.cpp diff --git a/src/kernel/context/ContextSwapped.cpp b/src/kernel/context/ContextSwapped.cpp index 7775167df7..100dcba71c 100644 --- a/src/kernel/context/ContextSwapped.cpp +++ b/src/kernel/context/ContextSwapped.cpp @@ -40,14 +40,11 @@ thread_local uintptr_t SwappedContext::worker_id_; /* thread-specifi SwappedContextFactory::SwappedContextFactory() : ContextFactory(), parallel_(SIMIX_context_is_parallel()) { parmap_ = nullptr; // will be created lazily with the right parameters if needed (ie, in parallel) - workers_context_.clear(); workers_context_.resize(parallel_ ? SIMIX_context_get_nthreads() : 1, nullptr); } SwappedContextFactory::~SwappedContextFactory() { delete parmap_; - parmap_ = nullptr; - workers_context_.clear(); } SwappedContext::SwappedContext(std::function code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,