X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cef59d338bade8ea4224fbe3eebb9ffe5bf08c4d..12ef73b3c1b6ef7bb9f2cf8031edf5e99e6c27a1:/examples/cpp/task-switch-host/s4u-task-switch-host.cpp diff --git a/examples/cpp/task-switch-host/s4u-task-switch-host.cpp b/examples/cpp/task-switch-host/s4u-task-switch-host.cpp index 2a22323f45..7023f68b48 100644 --- a/examples/cpp/task-switch-host/s4u-task-switch-host.cpp +++ b/examples/cpp/task-switch-host/s4u-task-switch-host.cpp @@ -50,7 +50,7 @@ int main(int argc, char* argv[]) XBT_INFO("Task %s finished (%d)", t->get_name().c_str(), t->get_count()); }); - // Add a function to be called before each executions of comm0 + // Add a function to be called before each firing of comm0 // This function modifies the graph of tasks by adding or removing // successors to comm0 comm0->on_this_start_cb([comm0, exec1, exec2, jupiter, fafard](sg4::Task*) { @@ -67,8 +67,8 @@ int main(int argc, char* argv[]) count++; }); - // Enqueue four executions for task comm0 - comm0->enqueue_execs(4); + // Enqueue four firings for task comm0 + comm0->enqueue_firings(4); // Start the simulation e.run();