From: Arnaud Giersch Date: Mon, 16 Oct 2017 08:32:16 +0000 (+0200) Subject: Use s4u API in example. X-Git-Tag: v3.18~443^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0ff40b115c4a7f131b2ffab880faf600e96cfc06 Use s4u API in example. --- diff --git a/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp b/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp index 0c47c27cf0..8f2b4eca25 100644 --- a/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp +++ b/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp @@ -21,7 +21,7 @@ public: explicit sleeper(std::vector /*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); }