Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Allocate Actors on the heap and return ActorPtr
[simgrid.git] / examples / s4u / basic / s4u_basic_function.cpp
index 2a21d52..9759056 100644 (file)
@@ -18,8 +18,8 @@ int main(int argc, char **argv) {
   e->registerFunction<Worker>("worker");
   e->registerFunction<Master>("master");
   std::vector<std::string> args;
-  simgrid::s4u::Actor("worker", simgrid::s4u::Host::by_name("Tremblay"), "worker", args);
-  simgrid::s4u::Actor("master", simgrid::s4u::Host::by_name("Jupiter"), "master", args);
+  simgrid::s4u::Actor::createActor("worker", simgrid::s4u::Host::by_name("Tremblay"), "worker", args);
+  simgrid::s4u::Actor::createActor("master", simgrid::s4u::Host::by_name("Jupiter"), "master", args);
   e->run();
   return 0;
 }