X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7e42dd535dfc0d68de20fba4b9fc5e480b56c74b..4d5c6aed22b8ae1c8a73cd04d8ab800322d177bf:/src/kernel/context/ContextRaw.cpp diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index a0c065fcfa..93d7d86824 100644 --- 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(self()); Context::set_current(this); - RawContext::swap(RawContext::get_maestro(), this); + RawContext::swap(old, this); } void SerialRawContext::run_all()