Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / kernel / activity / ActivityImpl.cpp
index aaaba06..a81face 100644 (file)
@@ -181,7 +181,8 @@ void ActivityImpl::suspend()
     return;
   }
   XBT_VERB("This activity is suspended (remain: %f)", model_action_->get_remains());
-  s4u::Activity::on_suspend(*get_iface());
+  get_iface()->fire_on_suspend();
+  get_iface()->fire_on_this_suspend();
   model_action_->suspend();
 }
 
@@ -190,7 +191,8 @@ void ActivityImpl::resume()
   if (model_action_ == nullptr)
     return;
   XBT_VERB("This activity is resumed (remain: %f)", model_action_->get_remains());
-  s4u::Activity::on_resume(*get_iface());
+  get_iface()->fire_on_resume();
+  get_iface()->fire_on_this_resume();
   model_action_->resume();
 }