X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d636f4a9dfd4005a73f8d9e0c393c8b3d849a2ad..305d783c9c259a5ec28836bdf697f73c6451aa2f:/examples/cpp/task-simple/s4u-task-simple.cpp diff --git a/examples/cpp/task-simple/s4u-task-simple.cpp b/examples/cpp/task-simple/s4u-task-simple.cpp index 0ec6aaa4c2..2d7224fc85 100644 --- a/examples/cpp/task-simple/s4u-task-simple.cpp +++ b/examples/cpp/task-simple/s4u-task-simple.cpp @@ -38,12 +38,11 @@ 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 executions for task exec1 - exec1->enqueue_execs(2); + // Enqueue two firings for task exec1 + exec1->enqueue_firings(2); // Start the simulation e.run();