Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Fix signatures of callbacks (timer and kill_process_function)
[simgrid.git] / src / surf / sg_platf.cpp
index 9a72f08..7a7868b 100644 (file)
@@ -329,7 +329,9 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process)
 
     XBT_DEBUG("Process %s(%s) will be started at time %f", arg->name,
            arg->hostname, start_time);
-    SIMIX_timer_set(start_time, (void*) SIMIX_process_create_from_wrapper, arg);
+    SIMIX_timer_set(start_time, [](void* arg) {
+      SIMIX_process_create_from_wrapper((smx_process_arg_t) arg);
+    }, arg);
   } else {                      // start_time <= SIMIX_get_clock()
     XBT_DEBUG("Starting Process %s(%s) right now", process->argv[0], sg_host_get_name(host));