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
Fix comment
[simgrid.git]
/
examples
/
msg
/
msg_test.c
diff --git
a/examples/msg/msg_test.c
b/examples/msg/msg_test.c
index
e692d0a
..
988f18e
100644
(file)
--- a/
examples/msg/msg_test.c
+++ b/
examples/msg/msg_test.c
@@
-85,6
+85,7
@@
int master(int argc, char *argv[])
if(MSG_host_self()==slaves[i % slaves_count]) {
INFO0("Hey ! It's me ! :)");
}
if(MSG_host_self()==slaves[i % slaves_count]) {
INFO0("Hey ! It's me ! :)");
}
+
MSG_task_put(todo[i], slaves[i % slaves_count],
PORT_22);
INFO0("Send completed");
MSG_task_put(todo[i], slaves[i % slaves_count],
PORT_22);
INFO0("Send completed");
@@
-127,7
+128,7
@@
int slave(int argc, char *argv[])
return 0;
} /* end_of_slave */
return 0;
} /* end_of_slave */
-/**
Receiv
er function */
+/**
Forward
er function */
int forwarder(int argc, char *argv[])
{
int i;
int forwarder(int argc, char *argv[])
{
int i;
@@
-167,6
+168,7
@@
int forwarder(int argc, char *argv[])
slaves[i% slaves_count]->name);
MSG_task_put(task, slaves[i % slaves_count],
PORT_22);
slaves[i% slaves_count]->name);
MSG_task_put(task, slaves[i % slaves_count],
PORT_22);
+ i++;
} else {
INFO0("Hey ?! What's up ? ");
xbt_assert0(0,"Unexpected behavior");
} else {
INFO0("Hey ?! What's up ? ");
xbt_assert0(0,"Unexpected behavior");
@@
-177,7
+179,6
@@
int forwarder(int argc, char *argv[])
return 0;
} /* end_of_forwarder */
return 0;
} /* end_of_forwarder */
-
/** Test function */
MSG_error_t test_all(const char *platform_file,
const char *application_file)
/** Test function */
MSG_error_t test_all(const char *platform_file,
const char *application_file)