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
/
ContextRaw.cpp
diff --git
a/src/kernel/context/ContextRaw.cpp
b/src/kernel/context/ContextRaw.cpp
index
a0c065f
..
93d7d86
100644
(file)
--- a/
src/kernel/context/ContextRaw.cpp
+++ b/
src/kernel/context/ContextRaw.cpp
@@
-303,8
+303,9
@@
void SerialRawContext::suspend()
void SerialRawContext::resume()
{
+ RawContext* old = static_cast<RawContext*>(self());
Context::set_current(this);
- RawContext::swap(
RawContext::get_maestro()
, this);
+ RawContext::swap(
old
, this);
}
void SerialRawContext::run_all()