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
eclipse: search internal_config where it is, even if it's ignored
[simgrid.git]
/
src
/
msg
/
msg_mailbox.cpp
diff --git
a/src/msg/msg_mailbox.cpp
b/src/msg/msg_mailbox.cpp
index
f1fd0c3
..
d27f199
100644
(file)
--- a/
src/msg/msg_mailbox.cpp
+++ b/
src/msg/msg_mailbox.cpp
@@
-1,19
+1,17
@@
/* Mailboxes in MSG */
/* Mailboxes in MSG */
-/* Copyright (c) 2008-2015. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2008-2017. 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. */
/* 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. */
-#include <xbt/ex.hpp>
-
-#include "simgrid/msg.h"
-#include "msg_private.h"
-#include "simgrid/s4u/mailbox.hpp"
+#include "simgrid/s4u/Mailbox.hpp"
+#include "src/msg/msg_private.h"
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()
+
/** \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
*
@@
-25,8
+23,8
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mail
*/
void MSG_mailbox_set_async(const char *alias){
simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::byName(alias);
*/
void MSG_mailbox_set_async(const char *alias){
simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::byName(alias);
-
- simcall_mbox_set_receiver(mailbox->getImpl(), SIMIX_process_self());
+ mailbox->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()