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
/
ContextUnix.cpp
diff --git
a/src/kernel/context/ContextUnix.cpp
b/src/kernel/context/ContextUnix.cpp
index
de85d2f
..
8bb3202
100644
(file)
--- a/
src/kernel/context/ContextUnix.cpp
+++ b/
src/kernel/context/ContextUnix.cpp
@@
-55,8
+55,7
@@
UContext::UContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_fun
#endif
UContext::make_ctx(&this->uc_, UContext::smx_ctx_sysv_wrapper, this);
} else {
- if (process != nullptr && get_maestro() == nullptr)
- set_maestro(this);
+ set_maestro(this); // save maestro for run_all()
}
#if SIMGRID_HAVE_MC