X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5187c5adc474e53b2f3cbf680cb0b950bf40f5a1..7f90173083cea6c05e9a2418bc11c47750d006d8:/src/kernel/context/Context.hpp diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index e4f3d6690a..7dc642024e 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -56,9 +56,9 @@ public: bool wannadie() const { return iwannadie_; } void set_wannadie(bool value = true) { iwannadie_ = value; } - void operator()() { code_(); } + void operator()() const { code_(); } bool has_code() const { return static_cast(code_); } - actor::ActorImpl* get_actor() { return this->actor_; } + actor::ActorImpl* get_actor() const { return this->actor_; } // Scheduling methods virtual void stop(); @@ -109,7 +109,4 @@ XBT_PRIVATE void SIMIX_context_mod_exit(); #ifndef WIN32 XBT_PUBLIC_DATA unsigned char sigsegv_stack[SIGSTKSZ]; #endif - -XBT_PRIVATE simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(const std::string& name); - #endif