Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tend to the google coding standards in all S4U API
[simgrid.git] / examples / s4u / actor-migration / s4u_actor-migration.cpp
index 5db96c6..102843c 100644 (file)
@@ -36,7 +36,7 @@ static void emigrant()
 
   simgrid::s4u::this_actor::suspend();
 
-  XBT_INFO("I've been moved on this new host: %s", simgrid::s4u::this_actor::host()->cname());
+  XBT_INFO("I've been moved on this new host: %s", simgrid::s4u::this_actor::getHost()->getCname());
   XBT_INFO("Uh, nothing to do here. Stopping now");
 }
 
@@ -72,5 +72,6 @@ int main(int argc, char* argv[])
 
   XBT_INFO("Simulation time %g", e->getClock());
 
+  delete e;
   return 0;
 }