X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82567f27fa74ddc2b6afa8d9b682bdde15fe3f9c..3ae6123aa28d3dd81f94623705f692d0cde6de57:/src/kernel/context/ContextThread.cpp diff --git a/src/kernel/context/ContextThread.cpp b/src/kernel/context/ContextThread.cpp index 3e2b0668bd..d246a3c258 100644 --- a/src/kernel/context/ContextThread.cpp +++ b/src/kernel/context/ContextThread.cpp @@ -34,7 +34,7 @@ ThreadContextFactory::~ThreadContextFactory() ParallelThreadContext::finalize(); } -ThreadContext* ThreadContextFactory::create_context(std::function&& code, smx_actor_t actor, bool maestro) +ThreadContext* ThreadContextFactory::create_context(std::function&& code, actor::ActorImpl* actor, bool maestro) { if (parallel_) return this->new_context(std::move(code), actor, maestro); @@ -55,7 +55,7 @@ void ThreadContextFactory::run_all() // ThreadContext -ThreadContext::ThreadContext(std::function&& code, smx_actor_t actor, bool maestro) +ThreadContext::ThreadContext(std::function&& code, actor::ActorImpl* actor, bool maestro) : AttachContext(std::move(code), actor), is_maestro_(maestro) { /* If the user provided a function for the actor then use it */ @@ -227,4 +227,6 @@ XBT_PRIVATE ContextFactory* thread_factory() XBT_VERB("Activating thread context factory"); return new ThreadContextFactory(); } -}}} // namespace +} // namespace context +} // namespace kernel +} // namespace simgrid