X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3d2bffb7542628af525b2507d2a5035ead215ff2..6bf39530532291fc2b6715ec7611acc993c8ec79:/src/kernel/context/ContextRaw.cpp diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index 5e178afd58..11a7888734 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -188,18 +188,18 @@ namespace context { // RawContextFactory -Context* RawContextFactory::create_context(std::function code, smx_actor_t actor) +Context* RawContextFactory::create_context(std::function&& code, actor::ActorImpl* actor) { return this->new_context(std::move(code), actor, this); } // RawContext -RawContext::RawContext(std::function code, smx_actor_t actor, SwappedContextFactory* factory) +RawContext::RawContext(std::function&& code, actor::ActorImpl* actor, SwappedContextFactory* factory) : SwappedContext(std::move(code), actor, factory) { if (has_code()) { - this->stack_top_ = raw_makecontext(get_stack(), smx_context_usable_stack_size, RawContext::wrapper, this); + this->stack_top_ = raw_makecontext(get_stack(), smx_context_stack_size, RawContext::wrapper, this); } else { if (MC_is_active()) MC_ignore_heap(&stack_top_, sizeof(stack_top_)); @@ -237,4 +237,6 @@ ContextFactory* raw_factory() XBT_VERB("Using raw contexts. Because the glibc is just not good enough for us."); return new RawContextFactory(); } -}}} +} // namespace context +} // namespace kernel +} // namespace simgrid