Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
obey sonar and make SwappedContext::stack_ private
[simgrid.git] / src / kernel / context / ContextSwapped.hpp
index da798ed..8ff75d5 100644 (file)
@@ -46,15 +46,14 @@ public:
   virtual void swap_into(SwappedContext* to) = 0; // Defined in Raw, Boost and UContext subclasses
 
   void set_maestro(SwappedContext* ctx);
   virtual void swap_into(SwappedContext* to) = 0; // Defined in Raw, Boost and UContext subclasses
 
   void set_maestro(SwappedContext* ctx);
+  void* get_stack();
 
   // FIXME: Killme
   static thread_local uintptr_t worker_id_;
 
 
   // FIXME: Killme
   static thread_local uintptr_t worker_id_;
 
-protected:
-  void* stack_ = nullptr; /* the thread stack */
-
 private:
 private:
-  SwappedContextFactory* factory_; // for sequential and parallel run_all()
+  void* stack_ = nullptr;                /* the thread stack */
+  SwappedContextFactory* const factory_; // for sequential and parallel run_all()
 };
 
 } // namespace context
 };
 
 } // namespace context