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
remove a deprecated example file
[simgrid.git]
/
examples
/
msg
/
parallel_contexts
/
pcontexts2.c
diff --git
a/examples/msg/parallel_contexts/pcontexts2.c
b/examples/msg/parallel_contexts/pcontexts2.c
index
bef800a
..
fb469c9
100644
(file)
--- a/
examples/msg/parallel_contexts/pcontexts2.c
+++ b/
examples/msg/parallel_contexts/pcontexts2.c
@@
-28,7
+28,7
@@
int master(int argc, char** argv)
for(j=0; j < WORK; j++);
MSG_task_send(task, mailbox);
for(j=0; j < WORK; j++);
MSG_task_send(task, mailbox);
-
INFO1
("Task sent to %s", mailbox);
+
XBT_INFO
("Task sent to %s", mailbox);
}
return 0;
}
return 0;
@@
-45,7
+45,7
@@
int slave(int argc, char **argv)
for(i=0; i < MAX_ITER; i++){
MSG_task_receive(&task, mailbox);
for(i=0; i < MAX_ITER; i++){
MSG_task_receive(&task, mailbox);
-
INFO1
("Task received to %s", mailbox);
+
XBT_INFO
("Task received to %s", mailbox);
MSG_task_destroy(task);
task=NULL;
}
MSG_task_destroy(task);
task=NULL;
}
@@
-61,7
+61,6
@@
MSG_error_t test_all(const char *platform_file,
/* MSG_config("workstation/model","KCCFLN05"); */
{ /* Simulation setting */
/* MSG_config("workstation/model","KCCFLN05"); */
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{ /* Application deployment */
MSG_create_environment(platform_file);
}
{ /* Application deployment */
@@
-71,7
+70,7
@@
MSG_error_t test_all(const char *platform_file,
}
res = MSG_main();
}
res = MSG_main();
-
INFO1
("Simulation time %g", MSG_get_clock());
+
XBT_INFO
("Simulation time %g", MSG_get_clock());
return res;
} /* end_of_test_all */
return res;
} /* end_of_test_all */