X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c7c6662f2627dddac82f15cb8d4f1b42ac23e2b9..3f8e0dbd61ebf6339d0a522b3f027390227e7e4a:/examples/s4u/app-token-ring/s4u-app-token-ring.cpp diff --git a/examples/s4u/app-token-ring/s4u-app-token-ring.cpp b/examples/s4u/app-token-ring/s4u-app-token-ring.cpp index 8e76889a5f..fd0d1269e6 100644 --- a/examples/s4u/app-token-ring/s4u-app-token-ring.cpp +++ b/examples/s4u/app-token-ring/s4u-app-token-ring.cpp @@ -28,13 +28,13 @@ public: throw std::invalid_argument(std::string("Processes of this example must have a numerical name, not ") + ia.what()); } - my_mailbox = simgrid::s4u::Mailbox::byName(std::to_string(rank)); + my_mailbox = simgrid::s4u::Mailbox::by_name(std::to_string(rank)); if (rank + 1 == simgrid::s4u::Engine::get_instance()->get_host_count()) /* The last process, which sends the token back to rank 0 */ - neighbor_mailbox = simgrid::s4u::Mailbox::byName("0"); + neighbor_mailbox = simgrid::s4u::Mailbox::by_name("0"); else /* The others processes send to their right neighbor (rank+1) */ - neighbor_mailbox = simgrid::s4u::Mailbox::byName(std::to_string(rank + 1)); + neighbor_mailbox = simgrid::s4u::Mailbox::by_name(std::to_string(rank + 1)); if (rank == 0) { /* The root process (rank 0) first sends the token then waits to receive it back */