X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3e527b7e11aeebc00aaca4a293a4ee22048c11e..3ce1a72143c8978e6e5764a3b250d930f3cd4a9b:/examples/s4u/async-waitall/s4u-async-waitall.cpp diff --git a/examples/s4u/async-waitall/s4u-async-waitall.cpp b/examples/s4u/async-waitall/s4u-async-waitall.cpp index 4789120dcb..55f645e4e1 100644 --- a/examples/s4u/async-waitall/s4u-async-waitall.cpp +++ b/examples/s4u/async-waitall/s4u-async-waitall.cpp @@ -17,7 +17,7 @@ #include #include -XBT_LOG_NEW_DEFAULT_CATEGORY(msg_async_waitall, "Messages specific for this msg example"); +XBT_LOG_NEW_DEFAULT_CATEGORY(msg_async_waitall, "Messages specific for this s4u example"); class sender { long messages_count; @@ -102,16 +102,15 @@ void operator()() int main(int argc, char *argv[]) { - simgrid::s4u::Engine* e = new simgrid::s4u::Engine(&argc, argv); - xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n", argv[0]); - e->registerFunction("sender"); - e->registerFunction("receiver"); + simgrid::s4u::Engine e(&argc, argv); + e.registerFunction("sender"); + e.registerFunction("receiver"); - e->loadPlatform(argv[1]); - e->loadDeployment(argv[2]); - e->run(); + e.loadPlatform(argv[1]); + e.loadDeployment(argv[2]); + e.run(); return 0; }