X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81588aeededcff1407c760226b43f347eb832b39..831de10adaaf8910940aa280e2ac2dd075b5ffe5:/src/simix/ContextThread.cpp diff --git a/src/simix/ContextThread.cpp b/src/simix/ContextThread.cpp index 49ba1b06f2..dd82a17a59 100644 --- a/src/simix/ContextThread.cpp +++ b/src/simix/ContextThread.cpp @@ -112,7 +112,7 @@ ThreadContext::ThreadContext(std::function 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 */ @@ -201,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()