X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a622a37b47a8f601e0828801a309bef04f09908e..080e391e51390f2739098295d391680e05a6ca93:/src/kernel/context/ContextSwapped.hpp diff --git a/src/kernel/context/ContextSwapped.hpp b/src/kernel/context/ContextSwapped.hpp index da798ed468..8ff75d5626 100644 --- a/src/kernel/context/ContextSwapped.hpp +++ b/src/kernel/context/ContextSwapped.hpp @@ -46,15 +46,14 @@ public: 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_; -protected: - void* stack_ = nullptr; /* the thread stack */ - 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