From 05f0932d593d7ae0b61147605dc88d3a5b4434a6 Mon Sep 17 00:00:00 2001 From: cristianrosa Date: Fri, 28 Jan 2011 16:25:39 +0000 Subject: [PATCH 1/1] Set the task to NULL to avoid a warning message. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9527 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/msg/parallel_contexts/pcontexts2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/msg/parallel_contexts/pcontexts2.c b/examples/msg/parallel_contexts/pcontexts2.c index 565ccd9002..bef800a091 100644 --- 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"); -#define MAX_ITER 1 -#define WORK 0 +#define MAX_ITER 200000 +#define WORK 100000 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); + task=NULL; } return 0; -- 2.20.1