Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
less indirect calls to get_instance in examples (exec to trace)
[simgrid.git] / examples / cpp / synchro-mutex / s4u-synchro-mutex.cpp
index 01aa751..86c3ac2 100644 (file)
@@ -63,7 +63,7 @@ int main(int argc, char **argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
   e.load_platform("../../platforms/two_hosts.xml");
-  simgrid::s4u::Actor::create("main", simgrid::s4u::Host::by_name("Tremblay"), master);
+  simgrid::s4u::Actor::create("main", e.host_by_name("Tremblay"), master);
   e.run();
 
   return 0;