Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
snake case this bool
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 4 Mar 2019 13:55:53 +0000 (14:55 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 4 Mar 2019 13:55:53 +0000 (14:55 +0100)
include/simgrid/s4u/Host.hpp
src/s4u/s4u_Host.cpp

index 4af625a..59ab43c 100644 (file)
@@ -47,7 +47,7 @@ protected:
   virtual ~Host();
 
 private:
-  bool currentlyDestroying_ = false;
+  bool currently_destroying_ = false;
 
 public:
   /*** Called on each newly created host */
index 68698e8..3f5d4d4 100644 (file)
@@ -39,7 +39,7 @@ Host::Host(std::string name) : name_(std::move(name))
 
 Host::~Host()
 {
-  xbt_assert(currentlyDestroying_, "Please call h->destroy() instead of manually deleting it.");
+  xbt_assert(currently_destroying_, "Please call h->destroy() instead of manually deleting it.");
 
   delete pimpl_;
   if (pimpl_netpoint != nullptr) // not removed yet by a children class
@@ -58,8 +58,8 @@ Host::~Host()
  */
 void Host::destroy()
 {
-  if (not currentlyDestroying_) {
-    currentlyDestroying_ = true;
+  if (not currently_destroying_) {
+    currently_destroying_ = true;
     on_destruction(*this);
     Engine::get_instance()->host_unregister(std::string(name_));
     delete this;