Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use s4u API in example.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 08:32:16 +0000 (10:32 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Oct 2017 08:32:16 +0000 (10:32 +0200)
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp

index 0c47c27..8f2b4ec 100644 (file)
@@ -21,7 +21,7 @@ public:
   explicit sleeper(std::vector<std::string> /*args*/)
   {
     XBT_INFO("Hello! I go to sleep.");
   explicit sleeper(std::vector<std::string> /*args*/)
   {
     XBT_INFO("Hello! I go to sleep.");
-    simcall_process_on_exit(SIMIX_process_self(), my_onexit, NULL);
+    simgrid::s4u::this_actor::onExit(my_onexit, NULL);
 
     simgrid::s4u::this_actor::sleep_for(10);
   }
 
     simgrid::s4u::this_actor::sleep_for(10);
   }