From: thiery Date: Tue, 7 Dec 2010 12:23:40 +0000 (+0000) Subject: Don't auto-destroy the MSG_comm_t in MSG_comm_wait() X-Git-Tag: v3.6_beta2~866 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/39aa30b1b7788096a4abd839d687fa82d88a90a4?ds=sidebyside Don't auto-destroy the MSG_comm_t in MSG_comm_wait() git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9057 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/actions/actions.c b/examples/msg/actions/actions.c index f5be73322f..f9e3e78ce7 100644 --- a/examples/msg/actions/actions.c +++ b/examples/msg/actions/actions.c @@ -469,7 +469,7 @@ static void action_allReduce(xbt_dynar_t action) { } MSG_comm_waitall(comms,communicator_size-1,-1); for (i = 1; i < communicator_size; i++) { - // MSG_comm_destroy(comms[i-1]); + MSG_comm_destroy(comms[i-1]); MSG_task_destroy(tasks[i-1]); } free(tasks); @@ -488,7 +488,7 @@ static void action_allReduce(xbt_dynar_t action) { } MSG_comm_waitall(comms,communicator_size-1,-1); /* for (i = 1; i < communicator_size; i++) */ - /* MSG_comm_destroy(comms[i-1]); */ + MSG_comm_destroy(comms[i-1]); free(comms); DEBUG2("%s: all messages sent by %s have been received",