From: Arnaud Giersch Date: Mon, 18 Mar 2019 12:53:00 +0000 (+0100) Subject: Make create_context return the real type. X-Git-Tag: v3_22~67 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/82e2aa78964d9150810411ce80fa62ab3aa4aaa9?ds=sidebyside Make create_context return the real type. --- diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index 1ba7c36750..d4dc55d3be 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -15,7 +15,7 @@ namespace kernel { namespace context { // BoostContextFactory -smx_context_t BoostContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) +BoostContext* BoostContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) { return this->new_context(std::move(code), actor, this); } diff --git a/src/kernel/context/ContextBoost.hpp b/src/kernel/context/ContextBoost.hpp index 082c6e80bf..c0adb53141 100644 --- a/src/kernel/context/ContextBoost.hpp +++ b/src/kernel/context/ContextBoost.hpp @@ -54,7 +54,7 @@ private: class BoostContextFactory : public SwappedContextFactory { public: - Context* create_context(std::function&& code, actor::ActorImpl* actor) override; + BoostContext* create_context(std::function&& code, actor::ActorImpl* actor) override; }; } // namespace context } // namespace kernel diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index 11a7888734..5645aea6fa 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -188,7 +188,7 @@ namespace context { // RawContextFactory -Context* RawContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) +RawContext* RawContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) { return this->new_context(std::move(code), actor, this); } diff --git a/src/kernel/context/ContextRaw.hpp b/src/kernel/context/ContextRaw.hpp index 84c90553d0..7d562966cf 100644 --- a/src/kernel/context/ContextRaw.hpp +++ b/src/kernel/context/ContextRaw.hpp @@ -39,7 +39,7 @@ private: class RawContextFactory : public SwappedContextFactory { public: - Context* create_context(std::function&& code, actor::ActorImpl* actor) override; + RawContext* create_context(std::function&& code, actor::ActorImpl* actor) override; }; } // namespace context } // namespace kernel diff --git a/src/kernel/context/ContextUnix.cpp b/src/kernel/context/ContextUnix.cpp index 9bae6d2710..2ebe3da45a 100644 --- a/src/kernel/context/ContextUnix.cpp +++ b/src/kernel/context/ContextUnix.cpp @@ -56,7 +56,7 @@ namespace kernel { namespace context { // UContextFactory -Context* UContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) +UContext* UContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) { return new_context(std::move(code), actor, this); } diff --git a/src/kernel/context/ContextUnix.hpp b/src/kernel/context/ContextUnix.hpp index ac12cc8481..cec22ac4a3 100644 --- a/src/kernel/context/ContextUnix.hpp +++ b/src/kernel/context/ContextUnix.hpp @@ -35,7 +35,7 @@ private: class UContextFactory : public SwappedContextFactory { public: - Context* create_context(std::function&& code, actor::ActorImpl* actor) override; + UContext* create_context(std::function&& code, actor::ActorImpl* actor) override; }; } // namespace context } // namespace kernel