]> AND Public Git Repository - simgrid.git/blobdiff - examples/cpp/task-switch-host/s4u-task-switch-host.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
explicitely sealing zones (by precaution
[simgrid.git] / examples / cpp / task-switch-host / s4u-task-switch-host.cpp
index 4a93265d3050f8a8f3acafc7e4f64abfc9bf6e6d..b007523f73a371f6aec6d961008ee78805a330a7 100644 (file)
@@ -46,9 +46,8 @@ int main(int argc, char* argv[])
   exec2->add_successor(comm2);
 
   // Add a function to be called when tasks end for log purpose
-  sg4::Task::on_completion_cb([](const sg4::Task* t) {
-    XBT_INFO("Task %s finished (%d)", t->get_name().c_str(), t->get_count());
-  });
+  sg4::Task::on_completion_cb(
+      [](const sg4::Task* t) { XBT_INFO("Task %s finished (%d)", t->get_name().c_str(), t->get_count()); });
 
   // Add a function to be called before each firing of comm0
   // This function modifies the graph of tasks by adding or removing