X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12ef73b3c1b6ef7bb9f2cf8031edf5e99e6c27a1..c4c82977e0a105cdf7b04010ddd21bbf15dced4d:/examples/cpp/task-io/s4u-task-io.cpp diff --git a/examples/cpp/task-io/s4u-task-io.cpp b/examples/cpp/task-io/s4u-task-io.cpp index f5d3c1560c..c0f6eb0a3b 100644 --- a/examples/cpp/task-io/s4u-task-io.cpp +++ b/examples/cpp/task-io/s4u-task-io.cpp @@ -13,8 +13,8 @@ * comm is a communication task. */ -#include "simgrid/s4u/Task.hpp" #include "simgrid/s4u.hpp" +#include "simgrid/s4u/Task.hpp" #include XBT_LOG_NEW_DEFAULT_CATEGORY(task_simple, "Messages specific for this task example"); @@ -41,9 +41,8 @@ int main(int argc, char* argv[]) read->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);