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 / io-async / s4u-io-async.cpp
index 67ee0b90e4cf4c923d425166b5672b102e0b83ce..19f5adf55494d013fd0bfb47440b03cc0ee12617 100644 (file)
@@ -67,10 +67,10 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
   e.load_platform(argv[1]);
-  simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("bob"), test, 2e7);
-  simgrid::s4u::Actor::create("test_waitfor", simgrid::s4u::Host::by_name("alice"), test_waitfor, 5e7);
-  simgrid::s4u::Actor::create("test_cancel", simgrid::s4u::Host::by_name("alice"), test_cancel, 5e7);
-  simgrid::s4u::Actor::create("test_monitor", simgrid::s4u::Host::by_name("alice"), test_monitor, 5e7);
+  simgrid::s4u::Actor::create("test", e.host_by_name("bob"), test, 2e7);
+  simgrid::s4u::Actor::create("test_waitfor", e.host_by_name("alice"), test_waitfor, 5e7);
+  simgrid::s4u::Actor::create("test_cancel", e.host_by_name("alice"), test_cancel, 5e7);
+  simgrid::s4u::Actor::create("test_monitor", e.host_by_name("alice"), test_monitor, 5e7);
 
   e.run();