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
jedule: obey our coding standards
[simgrid.git]
/
src
/
msg
/
msg_mailbox.cpp
diff --git
a/src/msg/msg_mailbox.cpp
b/src/msg/msg_mailbox.cpp
index
2186710
..
12bb632
100644
(file)
--- a/
src/msg/msg_mailbox.cpp
+++ b/
src/msg/msg_mailbox.cpp
@@
-1,17
+1,12
@@
/* Mailboxes in MSG */
/* Mailboxes in MSG */
-/* Copyright (c) 2008-2015. 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. */
/* 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/Actor.hpp"
#include "simgrid/s4u/Mailbox.hpp"
#include "simgrid/s4u/Mailbox.hpp"
+#include "src/msg/msg_private.hpp"
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)");
@@
-25,8
+20,6
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mail
* \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::by_name(alias)->set_receiver(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);
}
-