From 0ff40b115c4a7f131b2ffab880faf600e96cfc06 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 16 Oct 2017 10:32:16 +0200 Subject: [PATCH] Use s4u API in example. --- examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1