X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e96187af67ea418609e2e4454afbab053b37fc2f..aa67057cbae409c22a57e9dcf4d82a2859e97f45:/teshsuite/s4u/listen_async/listen_async.cpp diff --git a/teshsuite/s4u/listen_async/listen_async.cpp b/teshsuite/s4u/listen_async/listen_async.cpp index c9ca453b1f..bd4dece255 100644 --- a/teshsuite/s4u/listen_async/listen_async.cpp +++ b/teshsuite/s4u/listen_async/listen_async.cpp @@ -15,7 +15,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example") static void server() { - simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::byName("mailbox"); + simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::by_name("mailbox"); simgrid::s4u::CommPtr sendComm = mailbox->put_async(new std::string("Some data"), 0); @@ -28,8 +28,8 @@ static void server() delete res; sendComm->wait(); - simgrid::s4u::MailboxPtr mailbox2 = simgrid::s4u::Mailbox::byName("mailbox2"); - mailbox2->setReceiver(simgrid::s4u::Actor::self()); + simgrid::s4u::MailboxPtr mailbox2 = simgrid::s4u::Mailbox::by_name("mailbox2"); + mailbox2->set_receiver(simgrid::s4u::Actor::self()); mailbox2->put_init(new std::string("More data"), 0)->detach();