Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanups and refactoring in s4u::Task
[simgrid.git] / examples / cpp / task-switch-host / s4u-task-switch-host.cpp
index ae19ebc..3694a7d 100644 (file)
@@ -46,7 +46,7 @@ int main(int argc, char* argv[])
   exec2->add_successor(comm2);
 
   // 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());
   });