Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless cosmetic commit
[simgrid.git] / teshsuite / mc / mutex-handling / mutex-handling.cpp
index 243763b..257dc42 100644 (file)
@@ -59,8 +59,9 @@ static int sender(const char* box_name, simgrid::s4u::MutexPtr mutex, int value)
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  xbt_assert(argc > 1, "Usage: %s platform_file\n"
-                       "\tExample: %s msg_platform.xml\n",
+  xbt_assert(argc > 1,
+             "Usage: %s platform_file\n"
+             "\tExample: %s platform.xml\n",
              argv[0], argv[0]);
 
   simgrid::s4u::MutexPtr mutex;
@@ -69,9 +70,9 @@ int main(int argc, char* argv[])
 #endif
 
   e.load_platform(argv[1]);
-  simgrid::s4u::Actor::create("receiver", simgrid::s4u::Host::by_name("Jupiter"), receiver, "box");
-  simgrid::s4u::Actor::create("sender", simgrid::s4u::Host::by_name("Boivin"), sender, "box", mutex, 1);
-  simgrid::s4u::Actor::create("sender", simgrid::s4u::Host::by_name("Fafard"), sender, "box", mutex, 2);
+  simgrid::s4u::Actor::create("receiver", e.host_by_name("Jupiter"), receiver, "box");
+  simgrid::s4u::Actor::create("sender", e.host_by_name("Boivin"), sender, "box", mutex, 1);
+  simgrid::s4u::Actor::create("sender", e.host_by_name("Fafard"), sender, "box", mutex, 2);
 
   e.run();
   XBT_INFO("Simulation time %g", simgrid::s4u::Engine::get_clock());