Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate xbt_cfg_set_<type>().
[simgrid.git] / examples / s4u / actor-kill / s4u-actor-kill.cpp
index fb1efa6..7bac6a7 100644 (file)
@@ -15,7 +15,7 @@ static int on_exit(void*, void*)
 
 static void victimA_fun()
 {
-  simgrid::s4u::this_actor::onExit(on_exit, nullptr);
+  simgrid::s4u::this_actor::on_exit(on_exit, nullptr);
   XBT_INFO("Hello!");
   XBT_INFO("Suspending myself");
   simgrid::s4u::this_actor::suspend(); /* - Start by suspending itself */
@@ -60,7 +60,7 @@ static void killer()
   simgrid::s4u::this_actor::sleep_for(1);
 
   XBT_INFO("Killing everybody but myself");
-  simgrid::s4u::Actor::killAll();
+  simgrid::s4u::Actor::kill_all();
 
   XBT_INFO("OK, goodbye now. I commit a suicide.");
   simgrid::s4u::this_actor::kill();