Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[doc] Add todo about user .then()
[simgrid.git] / src / simix / ContextThread.cpp
index c020d56..dd82a17 100644 (file)
@@ -14,7 +14,6 @@
 #include "xbt/xbt_os_thread.h"
 #include "src/xbt_modinter.h"       /* prototype of os thread module's init/exit in XBT */
 
-#include "src/simix/smx_private.hpp"
 #include "src/simix/ContextThread.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context);
@@ -113,7 +112,7 @@ ThreadContext::ThreadContext(std::function<void()> code,
     /* NOTE: The first argument to xbt_os_thread_create used to be the process *
     * name, but now the name is stored at SIMIX level, so we pass a null  */
     this->thread_ =
-      xbt_os_thread_create(NULL,
+      xbt_os_thread_create(nullptr,
         maestro ? ThreadContext::maestro_wrapper : ThreadContext::wrapper,
         this, this);
     /* wait the starting of the newly created process */
@@ -202,7 +201,7 @@ void ThreadContext::stop()
   // Signal to the maestro that it has finished:
   xbt_os_sem_release(this->end_);
 
-  xbt_os_thread_exit(NULL);
+  xbt_os_thread_exit(nullptr);
 }
 
 void ThreadContext::suspend()