Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make xbt_os_thread_self() useless, and kill it
[simgrid.git] / src / kernel / context / ContextThread.cpp
index c93e361..01c084e 100644 (file)
@@ -69,9 +69,7 @@ ThreadContext::ThreadContext(std::function<void()> code, void_pfn_smxprocess_t c
       xbt_os_thread_setguardsize(smx_context_guard_size);
 
     /* create and start the process */
-    /* 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(nullptr, ThreadContext::wrapper, this, this);
+    this->thread_ = xbt_os_thread_create(ThreadContext::wrapper, this);
     /* wait the starting of the newly created process */
     this->end_.acquire();
   }