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));
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);
/* 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) {
namespace simgrid {
namespace s4u {
-const char *Mailbox::getName() {
+const char *Mailbox::name() {
return pimpl_->name;
}