A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
factorize where seq_runall and par_runall save maestro context
[simgrid.git]
/
src
/
kernel
/
context
/
ContextBoost.cpp
diff --git
a/src/kernel/context/ContextBoost.cpp
b/src/kernel/context/ContextBoost.cpp
index
9ae90ca
..
050267c
100644
(file)
--- a/
src/kernel/context/ContextBoost.cpp
+++ b/
src/kernel/context/ContextBoost.cpp
@@
-43,12
+43,12
@@
BoostContext::BoostContext(std::function<void()> code, void_pfn_smxprocess_t cle
#else
this->fc_ = boost::context::detail::make_fcontext(stack, smx_context_usable_stack_size, BoostContext::wrapper);
#endif
#else
this->fc_ = boost::context::detail::make_fcontext(stack, smx_context_usable_stack_size, BoostContext::wrapper);
#endif
+
} else {
} else {
+ set_maestro(this); // save maestro for run_all()
#if BOOST_VERSION < 105600
this->fc_ = new boost::context::fcontext_t();
#endif
#if BOOST_VERSION < 105600
this->fc_ = new boost::context::fcontext_t();
#endif
- if (get_maestro() == nullptr)
- set_maestro(this);
}
}
}
}