Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change a subclass into a superclass around contexts
[simgrid.git] / src / kernel / context / ContextBoost.cpp
index 07bb785..e9ea749 100644 (file)
@@ -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()