X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/708022beac42d3fe3fc04330be0a543831d6f319..3b56ba0e1914362b1c7e6b7d84bf72e2fe88f3c2:/examples/cpp/exec-ptask-multicore/s4u-exec-ptask-multicore.cpp diff --git a/examples/cpp/exec-ptask-multicore/s4u-exec-ptask-multicore.cpp b/examples/cpp/exec-ptask-multicore/s4u-exec-ptask-multicore.cpp index dd3fcbfad4..75f9701bbd 100644 --- a/examples/cpp/exec-ptask-multicore/s4u-exec-ptask-multicore.cpp +++ b/examples/cpp/exec-ptask-multicore/s4u-exec-ptask-multicore.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -6,7 +6,6 @@ #include XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_ptask_multicore, "Messages specific for this s4u example"); - namespace sg4 = simgrid::s4u; static void runner() @@ -62,7 +61,7 @@ static void runner() // Add a background task and change ptask on the fly auto MyHost1 = e->host_by_name("MyHost1"); - simgrid::s4u::ExecPtr background_task = MyHost1->exec_async(5e9); + sg4::ExecPtr background_task = MyHost1->exec_async(5e9); XBT_INFO("Start a 1-core background task on the 4-core host."); start_time = sg4::Engine::get_clock();