X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/546888e0918a3cda4cd2ffb5786f67dda3883a81..30e90945e7b6b0b08fb0b5ba0fc0dcc12f964a10:/src/simix/ContextUnix.cpp diff --git a/src/simix/ContextUnix.cpp b/src/simix/ContextUnix.cpp index 922631f445..02b3a6e140 100644 --- a/src/simix/ContextUnix.cpp +++ b/src/simix/ContextUnix.cpp @@ -216,7 +216,7 @@ UContext::UContext(std::function code, this->uc_.uc_stack.ss_size = sg_makecontext_stack_size(smx_context_usable_stack_size); simgrid_makecontext(&this->uc_, smx_ctx_sysv_wrapper, this); } else { - if (process != NULL && sysv_maestro_context == NULL) + if (process != nullptr && sysv_maestro_context == nullptr) sysv_maestro_context = this; } @@ -351,7 +351,7 @@ void ParallelUContext::suspend() // Will contain the next soul to run, either simulated or initial minion's one ucontext_t* next_stack; - if (next_work != NULL) { + if (next_work != nullptr) { // There is a next soul to embody (ie, a next process to resume) XBT_DEBUG("Run next process"); next_context = (ParallelUContext*) next_work->context;