X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e64d6da8afc98eb8ea9838e48735e01e922863fc..7e42dd535dfc0d68de20fba4b9fc5e480b56c74b:/src/kernel/context/ContextUnix.cpp diff --git a/src/kernel/context/ContextUnix.cpp b/src/kernel/context/ContextUnix.cpp index 5dc49b5fc3..e2641444c2 100644 --- a/src/kernel/context/ContextUnix.cpp +++ b/src/kernel/context/ContextUnix.cpp @@ -266,7 +266,7 @@ void ParallelUContext::resume() // What is my containing body? Store its number in os-thread-specific area : worker_id_ = threads_working_.fetch_add(1, std::memory_order_relaxed); // Get my current soul: - ParallelUContext* worker_context = static_cast(SIMIX_context_self()); + ParallelUContext* worker_context = static_cast(self()); // Write down that this soul is hosted in that body (for now) workers_context_[worker_id_] = worker_context; // Write in simix that I switched my soul