X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b5f82d1b507bc054ce8c099d9e00574106aa107..8e9b70d3dc4bc81e7f13c923ba3e6a736395d963:/src/simix/ContextRaw.cpp diff --git a/src/simix/ContextRaw.cpp b/src/simix/ContextRaw.cpp index 10330cbd09..a11741f414 100644 --- a/src/simix/ContextRaw.cpp +++ b/src/simix/ContextRaw.cpp @@ -61,7 +61,7 @@ public: RawContextFactory(); ~RawContextFactory() override; RawContext* create_context(std::function code, - void_pfn_smxprocess_t, smx_process_t process) override; + void_pfn_smxprocess_t cleanup, smx_process_t process) override; void run_all() override; private: void run_all_adaptative(); @@ -406,7 +406,7 @@ void RawContext::suspend_parallel() smx_process_t next_work = (smx_process_t) xbt_parmap_next(raw_parmap); RawContext* next_context = nullptr; - if (next_work != NULL) { + if (next_work != nullptr) { /* there is a next process to resume */ XBT_DEBUG("Run next process"); next_context = (RawContext*) next_work->context;