Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into 'python_bindings_host_load_plugin'
[simgrid.git] / examples / cpp / task-simple / s4u-task-simple.cpp
index dc3df1d04dbd68b10b5f2e436f94926e7cb98021..72ddf4c0d937a7f553ed625950407803e812647d 100644 (file)
@@ -38,12 +38,12 @@ 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_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());
   });
 
-  // 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();