Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanups and refactoring in s4u::Task
[simgrid.git] / examples / cpp / task-io / s4u-task-io.cpp
index 19102f2..52dcca1 100644 (file)
@@ -41,7 +41,7 @@ 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_end_cb([](const sg4::Task* t) {
+  sg4::Task::on_completion_cb([](const sg4::Task* t) {
     XBT_INFO("Task %s finished (%d)", t->get_name().c_str(), t->get_count());
   });