X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5e3adb6026f929615076da0e5a32dc35a02db573..b686073e4e6991ea9ae4154a13bf693acd738551:/src/kernel/context/ContextThread.cpp diff --git a/src/kernel/context/ContextThread.cpp b/src/kernel/context/ContextThread.cpp index 8b424d4f13..bef60c90e1 100644 --- a/src/kernel/context/ContextThread.cpp +++ b/src/kernel/context/ContextThread.cpp @@ -21,7 +21,8 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context); static xbt_os_sem_t smx_ctx_thread_sem = nullptr; namespace simgrid { -namespace simix { +namespace kernel { +namespace context { XBT_PRIVATE ContextFactory* thread_factory() { @@ -97,7 +98,8 @@ ThreadContext::ThreadContext(std::function code, void_pfn_smxprocess_t cleanup, smx_process_t process, bool maestro) : AttachContext(std::move(code), cleanup, process) { - // We do not need the semaphores when maestro is in main, but we create them anyway for simplicity wrt the case where maestro is externalized + // We do not need the semaphores when maestro is in main, + // but creating them anyway simplifies things when maestro is externalized this->begin_ = xbt_os_sem_init(0); this->end_ = xbt_os_sem_init(0); @@ -234,5 +236,4 @@ void ThreadContext::attach_stop() xbt_os_thread_set_extra_data(nullptr); } -} -} +}}} // namespace