Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / src / s4u / s4u_mailbox.cpp
index 32ab0bb..bdb69d3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-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. */
@@ -16,14 +16,14 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_channel,s4u,"S4U Communication Mailboxes");
 namespace simgrid {
 namespace s4u {
 
-const simgrid::xbt::string& Mailbox::getName() const
+const simgrid::xbt::string& Mailbox::get_name() const
 {
-  return pimpl_->getName();
+  return pimpl_->get_name();
 }
 
-const char* Mailbox::getCname() const
+const char* Mailbox::get_cname() const
 {
-  return pimpl_->getCname();
+  return pimpl_->get_cname();
 }
 
 MailboxPtr Mailbox::byName(const char*name)
@@ -79,7 +79,7 @@ CommPtr Mailbox::put_init()
 s4u::CommPtr Mailbox::put_init(void* data, uint64_t simulatedSize)
 {
   s4u::CommPtr res = put_init();
-  res->setRemains(simulatedSize);
+  res->set_remaining(simulatedSize);
   res->srcBuff_     = data;
   res->srcBuffSize_ = sizeof(void*);
   return res;
@@ -97,7 +97,7 @@ void Mailbox::put(void* payload, uint64_t simulatedSize)
   xbt_assert(payload != nullptr, "You cannot send nullptr");
 
   CommPtr c = put_init();
-  c->setRemains(simulatedSize);
+  c->set_remaining(simulatedSize);
   c->setSrcData(payload);
   c->wait();
 }
@@ -107,7 +107,7 @@ void Mailbox::put(void* payload, uint64_t simulatedSize, double timeout)
   xbt_assert(payload != nullptr, "You cannot send nullptr");
 
   CommPtr c = put_init();
-  c->setRemains(simulatedSize);
+  c->set_remaining(simulatedSize);
   c->setSrcData(payload);
   // c->start() is optional.
   c->wait(timeout);