Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make create_context return the real type.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 18 Mar 2019 12:53:00 +0000 (13:53 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 18 Mar 2019 12:53:00 +0000 (13:53 +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 1ba7c36..d4dc55d 100644 (file)
@@ -15,7 +15,7 @@ namespace kernel {
 namespace context {
 
 // BoostContextFactory
-smx_context_t BoostContextFactory::create_context(std::function<void()>&& code, actor::ActorImpl* actor)
+BoostContext* BoostContextFactory::create_context(std::function<void()>&& code, actor::ActorImpl* actor)
 {
   return this->new_context<BoostContext>(std::move(code), actor, this);
 }
index 082c6e8..c0adb53 100644 (file)
@@ -54,7 +54,7 @@ private:
 
 class BoostContextFactory : public SwappedContextFactory {
 public:
-  Context* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
+  BoostContext* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
 };
 } // namespace context
 } // namespace kernel
index 11a7888..5645aea 100644 (file)
@@ -188,7 +188,7 @@ namespace context {
 
 // RawContextFactory
 
-Context* RawContextFactory::create_context(std::function<void()>&& code, actor::ActorImpl* actor)
+RawContext* RawContextFactory::create_context(std::function<void()>&& code, actor::ActorImpl* actor)
 {
   return this->new_context<RawContext>(std::move(code), actor, this);
 }
index 84c9055..7d56296 100644 (file)
@@ -39,7 +39,7 @@ private:
 
 class RawContextFactory : public SwappedContextFactory {
 public:
-  Context* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
+  RawContext* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
 };
 } // namespace context
 } // namespace kernel
index 9bae6d2..2ebe3da 100644 (file)
@@ -56,7 +56,7 @@ namespace kernel {
 namespace context {
 
 // UContextFactory
-Context* UContextFactory::create_context(std::function<void()>&& code, actor::ActorImpl* actor)
+UContext* UContextFactory::create_context(std::function<void()>&& code, actor::ActorImpl* actor)
 {
   return new_context<UContext>(std::move(code), actor, this);
 }
index ac12cc8..cec22ac 100644 (file)
@@ -35,7 +35,7 @@ private:
 
 class UContextFactory : public SwappedContextFactory {
 public:
-  Context* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
+  UContext* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
 };
 } // namespace context
 } // namespace kernel