]> AND Public Git Repository - simgrid.git/blobdiff - src/msg/msg_mailbox.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
msg_private.h is a C++ header so add pp
[simgrid.git] / src / msg / msg_mailbox.cpp
index f1fd0c36ee549d09edd9ec99d37b97dcd7549dfb..8b09b2e0a4e1d18bbfef6c9660f1205d362c1463 100644 (file)
@@ -9,8 +9,10 @@
 #include <xbt/ex.hpp>
 
 #include "simgrid/msg.h"
-#include "msg_private.h"
-#include "simgrid/s4u/mailbox.hpp"
+#include "simgrid/s4u/Actor.hpp"
+
+#include "msg_private.hpp"
+#include "simgrid/s4u/Mailbox.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)");
 
@@ -25,8 +27,7 @@ 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);
-
-  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);
 }