A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanups and refactoring in s4u::Task
[simgrid.git]
/
examples
/
cpp
/
task-io
/
s4u-task-io.cpp
diff --git
a/examples/cpp/task-io/s4u-task-io.cpp
b/examples/cpp/task-io/s4u-task-io.cpp
index 19102f25a58d25788c0430484b12ca772b96d919..52dcca1202df5279da147cbfa24e39dd32d01407 100644
(file)
--- a/
examples/cpp/task-io/s4u-task-io.cpp
+++ b/
examples/cpp/task-io/s4u-task-io.cpp
@@
-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
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());
});
XBT_INFO("Task %s finished (%d)", t->get_name().c_str(), t->get_count());
});