#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);
/* 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 */
// 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()