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
Change a subclass into a superclass around contexts
[simgrid.git]
/
src
/
kernel
/
context
/
ContextBoost.cpp
diff --git
a/src/kernel/context/ContextBoost.cpp
b/src/kernel/context/ContextBoost.cpp
index
07bb785
..
e9ea749
100644
(file)
--- a/
src/kernel/context/ContextBoost.cpp
+++ b/
src/kernel/context/ContextBoost.cpp
@@
-163,8
+163,9
@@
void SerialBoostContext::suspend()
void SerialBoostContext::resume()
{
+ BoostContext* old = static_cast<BoostContext*>(self());
Context::set_current(this);
- BoostContext::swap(
BoostContext::get_maestro()
, this);
+ BoostContext::swap(
old
, this);
}
void SerialBoostContext::run_all()