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
Make member variables "private" (Sonar).
[simgrid.git]
/
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 eee90e6a4acaac1b705dcd1a167250fdbb8ed4d2..4a93265d3050f8a8f3acafc7e4f64abfc9bf6e6d 100644
(file)
--- a/
examples/cpp/task-switch-host/s4u-task-switch-host.cpp
+++ b/
examples/cpp/task-switch-host/s4u-task-switch-host.cpp
@@
-53,7
+53,7
@@
int main(int argc, char* argv[])
// 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
// 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](const sg4::Task*) {
+ comm0->on_this_start_cb([
&
comm0, exec1, exec2, jupiter, fafard](const sg4::Task*) {
static int count = 0;
if (count % 2 == 0) {
comm0->set_destination(jupiter);
static int count = 0;
if (count % 2 == 0) {
comm0->set_destination(jupiter);