X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1a4f00ba0c403c20a7eae8bea566371a4f131b3e..d33a14dc048378e654595318c473d0386bc3b514:/src/kernel/context/ContextThread.cpp diff --git a/src/kernel/context/ContextThread.cpp b/src/kernel/context/ContextThread.cpp index a9736ccd52..5f1f15975f 100644 --- a/src/kernel/context/ContextThread.cpp +++ b/src/kernel/context/ContextThread.cpp @@ -158,7 +158,7 @@ void ThreadContext::suspend() void ThreadContext::attach_start() { // We're breaking the layers here by depending on the upper layer: - ThreadContext* maestro = static_cast(simix_global->maestro_process->context_.get()); + ThreadContext* maestro = static_cast(simix_global->maestro_->context_.get()); maestro->begin_.release(); xbt_assert(not this->is_maestro()); this->start(); @@ -169,7 +169,7 @@ void ThreadContext::attach_stop() xbt_assert(not this->is_maestro()); this->yield(); - ThreadContext* maestro = static_cast(simix_global->maestro_process->context_.get()); + ThreadContext* maestro = static_cast(simix_global->maestro_->context_.get()); maestro->end_.acquire(); Context::set_current(nullptr);