X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f734ec7475682eb90323e804cbcfddd7e4523992..1bd1598e76058781ce535546a31555fe753f55a5:/src/msg/msg_mailbox.cpp diff --git a/src/msg/msg_mailbox.cpp b/src/msg/msg_mailbox.cpp index 394e409d54..b99055d82f 100644 --- a/src/msg/msg_mailbox.cpp +++ b/src/msg/msg_mailbox.cpp @@ -10,7 +10,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)"); -SG_BEGIN_DECL() +extern "C" { /** \ingroup msg_mailbox_management * \brief Set the mailbox to receive in asynchronous mode @@ -22,9 +22,7 @@ SG_BEGIN_DECL() * \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::byName(alias)->setReceiver(simgrid::s4u::Actor::self()); XBT_VERB("%s mailbox set to receive eagerly for myself\n",alias); } - -SG_END_DECL() +}