Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics: rename host::on to host::turnOn
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 9 Jan 2016 22:19:46 +0000 (23:19 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 9 Jan 2016 22:19:46 +0000 (23:19 +0100)
include/simgrid/Host.hpp
src/msg/msg_host.cpp
src/s4u/s4u_host.cpp
src/simgrid/host.cpp

index 3e82229..42fa5ec 100644 (file)
@@ -38,8 +38,8 @@ public:
   Host(std::string const& name);
   ~Host();
   simgrid::xbt::string const& getName() const { return name_; }
-  void on();
-  void off();
+  void turnOn();
+  void turnOff();
   bool isOn();
   bool isOff();
   xbt_dict_t getProperties();
index 58a3ba5..85bf83f 100644 (file)
@@ -128,7 +128,7 @@ msg_host_t MSG_host_self(void)
  */
 void MSG_host_on(msg_host_t host)
 {
-  host->on();
+  host->turnOn();
 }
 
 /** \ingroup m_host_management
@@ -139,7 +139,7 @@ void MSG_host_on(msg_host_t host)
  */
 void MSG_host_off(msg_host_t host)
 {
-  host->off();
+  host->turnOff();
 }
 
 /*
index 5f7b902..f878ce8 100644 (file)
@@ -53,10 +53,10 @@ const char* Host::name() {
 }
 
 void Host::turnOn() {
-       p_inferior->on();
+       p_inferior->turnOn();
 }
 void Host::turnOff() {
-       p_inferior->off();
+       p_inferior->turnOff();
 }
 bool Host::isOn() {
        return sg_host_is_on(p_inferior);
index af13e1a..38d3e17 100644 (file)
@@ -177,13 +177,13 @@ Host::~Host()
 }
 
 /** Start the host if it is off */
-void Host::on()
+void Host::turnOn()
 {
   simgrid::simix::kernel(std::bind(SIMIX_host_on, this));
 }
 
 /** Stop the host if it is on */
-void Host::off()
+void Host::turnOff()
 {
   /* Go to that function to follow the code flow through the simcall barrier */
   if (0) simcall_HANDLER_host_off(&SIMIX_process_self()->simcall, this);