Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix a failure about mutex freed too early in RMA
[simgrid.git] / examples / cpp / task-variable-load / s4u-task-variable-load.cpp
index 0955c2e2a4a96e09c622b4a3fd1f4e48b1ade09b..fff790dc68277e38ebe2ae498b4f2c3d16a37a30 100644 (file)
@@ -50,9 +50,8 @@ int main(int argc, char* argv[])
   comm->add_successor(exec);
 
   // 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()); });
 
   // Create the actor that will inject load during the simulation
   sg4::Actor::create("input", tremblay, variable_load, comm);