Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add test for --cfg=simix/breakpoint.
[simgrid.git] / examples / s4u / actor-create / s4u-actor-create.cpp
index 87530584fe6358292683658343e0a7efcd40784a..3e3d1e9b39a5369645779d9366ef141acb0bffd6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -73,7 +73,7 @@ public:
   }
   void operator()()
   {
-    XBT_INFO("Hello s4u, I'm ready to get any message you'd want on %s", mailbox->getCname());
+    XBT_INFO("Hello s4u, I'm ready to get any message you'd want on %s", mailbox->get_cname());
 
     std::string* msg1 = static_cast<std::string*>(mailbox->get());
     std::string* msg2 = static_cast<std::string*>(mailbox->get());
@@ -98,14 +98,14 @@ int main(int argc, char** argv)
    * You can first directly start your actor, as follows. Note the last parameter: 'Sender()',
    * as if you would call the Sender function.
    */
-  simgrid::s4u::Actor::createActor("sender1", simgrid::s4u::Host::by_name("Tremblay"), Sender());
+  simgrid::s4u::Actor::create("sender1", simgrid::s4u::Host::by_name("Tremblay"), Sender());
 
   /* The second way is to first register your function, and then retrieve it */
   e.registerFunction<Sender>("sender");  // The sender is passed as a template parameter here
   std::vector<std::string> args;         // Here we declare the parameter that the actor will get
   args.push_back("GloubiBoulga");        // Add a parameter to the set (we could have done it in the first approach too)
 
-  simgrid::s4u::Actor::createActor("sender2", simgrid::s4u::Host::by_name("Jupiter"), "sender", args);
+  simgrid::s4u::Actor::create("sender2", simgrid::s4u::Host::by_name("Jupiter"), "sender", args);
 
   /* The third way to start your actors is to use a deployment file. */
   e.registerFunction<Receiver>("receiver");   // You first have to register the actor as with the second approach