Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup work to make is_race_reversible() a method of Transition
[simgrid.git] / examples / cpp / task-simple / s4u-task-simple.cpp
index 72ddf4c0d937a7f553ed625950407803e812647d..2d7224fc859c952d6525c637372ce39fef8de458 100644 (file)
@@ -38,9 +38,8 @@ int main(int argc, char* argv[])
   comm->add_successor(exec2);
 
   // 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()); });
 
   // Enqueue two firings for task exec1
   exec1->enqueue_firings(2);