X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/94f511befd8ea7dea78746c1f6ae818a778e67e7..c641d112f8a557b61ff14c261931077773f21fbd:/src/kernel/context/ContextBoost.cpp diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index 9ae90ca5ae..050267cffd 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -43,12 +43,12 @@ BoostContext::BoostContext(std::function code, void_pfn_smxprocess_t cle #else this->fc_ = boost::context::detail::make_fcontext(stack, smx_context_usable_stack_size, BoostContext::wrapper); #endif + } else { + set_maestro(this); // save maestro for run_all() #if BOOST_VERSION < 105600 this->fc_ = new boost::context::fcontext_t(); #endif - if (get_maestro() == nullptr) - set_maestro(this); } }