X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a96adb51dabc0c759af11e60c770355f22a54ef3..1bf033cc925aa31693ef5163ea056fde5b75ff1e:/src/msg/msg_mailbox.cpp diff --git a/src/msg/msg_mailbox.cpp b/src/msg/msg_mailbox.cpp index 791e59d738..12bb63293e 100644 --- a/src/msg/msg_mailbox.cpp +++ b/src/msg/msg_mailbox.cpp @@ -1,6 +1,6 @@ /* Mailboxes in MSG */ -/* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-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. */ @@ -10,8 +10,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)"); -extern "C" { - /** \ingroup msg_mailbox_management * \brief Set the mailbox to receive in asynchronous mode * @@ -22,8 +20,6 @@ extern "C" { * \param alias The name of the mailbox */ void MSG_mailbox_set_async(const char *alias){ - simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::byName(alias); - mailbox->setReceiver(simgrid::s4u::Actor::self()); + simgrid::s4u::Mailbox::by_name(alias)->set_receiver(simgrid::s4u::Actor::self()); XBT_VERB("%s mailbox set to receive eagerly for myself\n",alias); } -}