From c04547f03f9bb057e02f09932cd6f95805e7bc8e Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 12 Jul 2017 23:06:27 +0200 Subject: [PATCH] sonar --- src/simix/smx_global.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index ab65eeb66c..68d64655d5 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -579,7 +579,7 @@ void SIMIX_run() */ smx_timer_t SIMIX_timer_set(double date, void (*callback)(void*), void *arg) { - smx_timer_t timer = new s_smx_timer_t(date, [=](){ callback(arg); }); + smx_timer_t timer = new s_smx_timer_t(date, [callback, arg]() { callback(arg); }); xbt_heap_push(simix_timers, timer, date); return timer; } @@ -669,18 +669,6 @@ void SIMIX_display_process_status() if (boost::dynamic_pointer_cast(process->waiting_synchro) != nullptr) synchro_description = "I/O"; - - /* - switch (process->waiting_synchro->type) { - case SIMIX_SYNC_PARALLEL_EXECUTE: - synchro_description = "parallel execution"; - break; - - case SIMIX_SYNC_JOIN: - synchro_description = "joining"; - break; -*/ - XBT_INFO("Process %lu (%s@%s): waiting for %s synchro %p (%s) in state %d to finish", process->pid, process->cname(), process->host->getCname(), synchro_description, process->waiting_synchro.get(), process->waiting_synchro->name.c_str(), (int)process->waiting_synchro->state); -- 2.20.1