Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
track some remaining CamelCase deep inside the context code
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 4 Jan 2019 21:12:45 +0000 (22:12 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 4 Jan 2019 21:12:45 +0000 (22:12 +0100)
src/kernel/context/ContextBoost.cpp
src/kernel/context/ContextBoost.hpp
src/kernel/context/ContextRaw.cpp
src/kernel/context/ContextRaw.hpp
src/kernel/context/ContextUnix.cpp
src/kernel/context/ContextUnix.hpp

index 256f677..ea98813 100644 (file)
@@ -19,7 +19,7 @@ namespace context {
 BoostContextFactory::BoostContextFactory()
     : ContextFactory("BoostContextFactory"), parallel_(SIMIX_context_is_parallel())
 {
 BoostContextFactory::BoostContextFactory()
     : ContextFactory("BoostContextFactory"), parallel_(SIMIX_context_is_parallel())
 {
-  BoostContext::setMaestro(nullptr);
+  BoostContext::set_maestro(nullptr);
   if (parallel_) {
 #if HAVE_THREAD_CONTEXTS
     ParallelBoostContext::initialize();
   if (parallel_) {
 #if HAVE_THREAD_CONTEXTS
     ParallelBoostContext::initialize();
@@ -167,7 +167,7 @@ void SerialBoostContext::suspend()
   } else {
     /* all processes were run, return to maestro */
     XBT_DEBUG("No more process to run");
   } else {
     /* all processes were run, return to maestro */
     XBT_DEBUG("No more process to run");
-    next_context = static_cast<SerialBoostContext*>(BoostContext::getMaestro());
+    next_context = static_cast<SerialBoostContext*>(BoostContext::get_maestro());
   }
   SIMIX_context_set_current(next_context);
   BoostContext::swap(this, next_context);
   }
   SIMIX_context_set_current(next_context);
   BoostContext::swap(this, next_context);
@@ -176,7 +176,7 @@ void SerialBoostContext::suspend()
 void SerialBoostContext::resume()
 {
   SIMIX_context_set_current(this);
 void SerialBoostContext::resume()
 {
   SIMIX_context_set_current(this);
-  BoostContext::swap(BoostContext::getMaestro(), this);
+  BoostContext::swap(BoostContext::get_maestro(), this);
 }
 
 void SerialBoostContext::run_all()
 }
 
 void SerialBoostContext::run_all()
index 8031685..7b3a58e 100644 (file)
@@ -38,8 +38,8 @@ public:
   virtual void resume() = 0;
 
   static void swap(BoostContext* from, BoostContext* to);
   virtual void resume() = 0;
 
   static void swap(BoostContext* from, BoostContext* to);
-  static BoostContext* getMaestro() { return maestro_context_; }
-  static void setMaestro(BoostContext* maestro) { maestro_context_ = maestro; }
+  static BoostContext* get_maestro() { return maestro_context_; }
+  static void set_maestro(BoostContext* maestro) { maestro_context_ = maestro; }
 
 private:
   static BoostContext* maestro_context_;
 
 private:
   static BoostContext* maestro_context_;
index 423f13d..a4b8db5 100644 (file)
@@ -188,7 +188,7 @@ namespace context {
 
 RawContextFactory::RawContextFactory() : ContextFactory("RawContextFactory"), parallel_(SIMIX_context_is_parallel())
 {
 
 RawContextFactory::RawContextFactory() : ContextFactory("RawContextFactory"), parallel_(SIMIX_context_is_parallel())
 {
-  RawContext::setMaestro(nullptr);
+  RawContext::set_maestro(nullptr);
   if (parallel_) {
 #if HAVE_THREAD_CONTEXTS
     // TODO: choose dynamically when SIMIX_context_get_parallel_threshold() > 1
   if (parallel_) {
 #if HAVE_THREAD_CONTEXTS
     // TODO: choose dynamically when SIMIX_context_get_parallel_threshold() > 1
@@ -306,7 +306,7 @@ void SerialRawContext::suspend()
   } else {
     /* all processes were run, return to maestro */
     XBT_DEBUG("No more process to run");
   } else {
     /* all processes were run, return to maestro */
     XBT_DEBUG("No more process to run");
-    next_context = static_cast<SerialRawContext*>(RawContext::getMaestro());
+    next_context = static_cast<SerialRawContext*>(RawContext::get_maestro());
   }
   SIMIX_context_set_current(next_context);
   RawContext::swap(this, next_context);
   }
   SIMIX_context_set_current(next_context);
   RawContext::swap(this, next_context);
@@ -315,7 +315,7 @@ void SerialRawContext::suspend()
 void SerialRawContext::resume()
 {
   SIMIX_context_set_current(this);
 void SerialRawContext::resume()
 {
   SIMIX_context_set_current(this);
-  RawContext::swap(RawContext::getMaestro(), this);
+  RawContext::swap(RawContext::get_maestro(), this);
 }
 
 void SerialRawContext::run_all()
 }
 
 void SerialRawContext::run_all()
index fb17bc6..6d79a94 100644 (file)
@@ -31,8 +31,8 @@ public:
   virtual void resume() = 0;
 
   static void swap(RawContext* from, RawContext* to);
   virtual void resume() = 0;
 
   static void swap(RawContext* from, RawContext* to);
-  static RawContext* getMaestro() { return maestro_context_; }
-  static void setMaestro(RawContext* maestro) { maestro_context_ = maestro; }
+  static RawContext* get_maestro() { return maestro_context_; }
+  static void set_maestro(RawContext* maestro) { maestro_context_ = maestro; }
 
 private:
   static RawContext* maestro_context_;
 
 private:
   static RawContext* maestro_context_;
index 4bd1ddc..e412895 100644 (file)
@@ -32,7 +32,7 @@ namespace context {
 
 UContextFactory::UContextFactory() : ContextFactory("UContextFactory"), parallel_(SIMIX_context_is_parallel())
 {
 
 UContextFactory::UContextFactory() : ContextFactory("UContextFactory"), parallel_(SIMIX_context_is_parallel())
 {
-  UContext::setMaestro(nullptr);
+  UContext::set_maestro(nullptr);
   if (parallel_) {
 #if HAVE_THREAD_CONTEXTS
     ParallelUContext::initialize();
   if (parallel_) {
 #if HAVE_THREAD_CONTEXTS
     ParallelUContext::initialize();
@@ -179,7 +179,7 @@ void SerialUContext::suspend()
   } else {
     /* all processes were run, return to maestro */
     XBT_DEBUG("No more process to run");
   } else {
     /* all processes were run, return to maestro */
     XBT_DEBUG("No more process to run");
-    next_context = static_cast<SerialUContext*>(UContext::getMaestro());
+    next_context = static_cast<SerialUContext*>(UContext::get_maestro());
   }
   SIMIX_context_set_current(next_context);
   UContext::swap(this, next_context);
   }
   SIMIX_context_set_current(next_context);
   UContext::swap(this, next_context);
@@ -188,7 +188,7 @@ void SerialUContext::suspend()
 void SerialUContext::resume()
 {
   SIMIX_context_set_current(this);
 void SerialUContext::resume()
 {
   SIMIX_context_set_current(this);
-  UContext::swap(UContext::getMaestro(), this);
+  UContext::swap(UContext::get_maestro(), this);
 }
 
 void SerialUContext::run_all()
 }
 
 void SerialUContext::run_all()
index 88976a8..60775df 100644 (file)
@@ -33,8 +33,8 @@ public:
   virtual void resume() = 0;
 
   static void swap(UContext* from, UContext* to);
   virtual void resume() = 0;
 
   static void swap(UContext* from, UContext* to);
-  static UContext* getMaestro() { return maestro_context_; }
-  static void setMaestro(UContext* maestro) { maestro_context_ = maestro; }
+  static UContext* get_maestro() { return maestro_context_; }
+  static void set_maestro(UContext* maestro) { maestro_context_ = maestro; }
 
 private:
   static UContext* maestro_context_;
 
 private:
   static UContext* maestro_context_;