Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 10 Oct 2016 15:09:46 +0000 (17:09 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 10 Oct 2016 15:09:46 +0000 (17:09 +0200)
examples/s4u/launching/s4u_launching.cpp
include/simgrid/s4u/Mailbox.hpp
src/msg/msg_gos.cpp
src/s4u/s4u_mailbox.cpp

index 6338f89..49e2a4c 100644 (file)
@@ -77,7 +77,7 @@ public:
       mailbox = simgrid::s4u::Mailbox::byName(args[1]);
   }
   void operator()() {
-    XBT_INFO("Hello s4u, I'm ready to get any message you'd want on %s", mailbox->getName());
+    XBT_INFO("Hello s4u, I'm ready to get any message you'd want on %s", mailbox->name());
 
     char *msg1 = static_cast<char*>(simgrid::s4u::this_actor::recv(mailbox));
     char *msg2 = static_cast<char*>(simgrid::s4u::this_actor::recv(mailbox));
index 9236131..07925b5 100644 (file)
@@ -121,7 +121,7 @@ public:
   smx_mailbox_t getImpl() { return pimpl_; }
 
   /** Gets the name of that mailbox */
-  const char *getName();
+  const char *name();
 
   /** Retrieve the mailbox associated to the given C string */
   static MailboxPtr byName(const char *name);
index 295ba5f..e9227f0 100644 (file)
@@ -268,7 +268,7 @@ msg_error_t MSG_task_receive_ext_bounded(msg_task_t * task, const char *alias, d
   /* Try to receive it by calling SIMIX network layer */
   try {
     simcall_comm_recv(MSG_process_self(), mailbox->getImpl(), task, nullptr, nullptr, nullptr, nullptr, timeout, rate);
-    XBT_DEBUG("Got task %s from %s",(*task)->name,mailbox->getName());
+    XBT_DEBUG("Got task %s from %s",(*task)->name,mailbox->name());
     (*task)->simdata->setNotUsed();
   }
   catch (xbt_ex& e) {
index c23d735..ea2a108 100644 (file)
@@ -16,7 +16,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_channel,s4u,"S4U Communication Mailboxes");
 namespace simgrid {
 namespace s4u {
 
-const char *Mailbox::getName() {
+const char *Mailbox::name() {
   return pimpl_->name;
 }