Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use xbt::random instead of rand and srand
[simgrid.git] / examples / cpp / task-switch-host / s4u-task-switch-host.cpp
index 27038a38fa0d38d2608f1bb02c8a4d91ff6025ac..6ebca129dadb13b3c84797f49733fd20aadc2a3c 100644 (file)
@@ -54,7 +54,7 @@ int main(int argc, char* argv[])
   // Add a function to be called before each executions of comm0
   // This function modifies the graph of tasks by adding or removing
   // successors to comm0
-  comm0->on_this_start([exec1, exec2, jupiter, fafard](simgrid::plugins::Task* t) {
+  comm0->on_this_start_cb([exec1, exec2, jupiter, fafard](simgrid::plugins::Task* t) {
     auto* comm0      = dynamic_cast<simgrid::plugins::CommTask*>(t);
     static int count = 0;
     if (count % 2 == 0) {