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);
}
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
// 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);
}
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
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);
}
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