From: cristianrosa Date: Fri, 28 Jan 2011 16:25:39 +0000 (+0000) Subject: Set the task to NULL to avoid a warning message. X-Git-Tag: v3.6_beta2~402 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/05f0932d593d7ae0b61147605dc88d3a5b4434a6 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 --- 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;