A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s/fullduplex/splitduplex/ in platform parsing (backward compatible, with a warning)
[simgrid.git]
/
src
/
msg
/
msg_mailbox.cpp
diff --git
a/src/msg/msg_mailbox.cpp
b/src/msg/msg_mailbox.cpp
index
394e409
..
b99055d
100644
(file)
--- 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)");
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
/** \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){
* \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);
}
XBT_VERB("%s mailbox set to receive eagerly for myself\n",alias);
}
-
-SG_END_DECL()
+}