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
Set the task to NULL to avoid a warning message.
[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
565ccd9
..
bef800a
100644
(file)
--- a/
examples/msg/parallel_contexts/pcontexts2.c
+++ b/
examples/msg/parallel_contexts/pcontexts2.c
@@
-4,8
+4,8
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
"Messages specific for this msg example");
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
"Messages specific for this msg example");
-#define MAX_ITER
1
-#define WORK 0
+#define MAX_ITER
200000
+#define WORK
10000
0
int master(int argc, char **argv);
int slave(int argc, char **argv);
int master(int argc, char **argv);
int slave(int argc, char **argv);
@@
-47,6
+47,7
@@
int slave(int argc, char **argv)
MSG_task_receive(&task, mailbox);
INFO1("Task received to %s", mailbox);
MSG_task_destroy(task);
MSG_task_receive(&task, mailbox);
INFO1("Task received to %s", mailbox);
MSG_task_destroy(task);
+ task=NULL;
}
return 0;
}
return 0;