From: cristianrosa Date: Thu, 20 Jan 2011 15:44:58 +0000 (+0000) Subject: Do not free the data structures before leaving because there are issues in the implem... X-Git-Tag: v3.6_beta2~475 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/45755c62629ed5663b73b6ac3f22618c7ec087f8?ds=sidebyside Do not free the data structures before leaving because there are issues in the implementation. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9454 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/chord/chord.c b/examples/msg/chord/chord.c index dc3914c14b..54919e0a6c 100644 --- a/examples/msg/chord/chord.c +++ b/examples/msg/chord/chord.c @@ -255,7 +255,7 @@ static void set_predecessor(node_t node, int predecessor_id) int node(int argc, char *argv[]) { double init_time = MSG_get_clock(); - m_task_t task = NULL; + /*m_task_t task = NULL;*/ m_task_t task_received = NULL; msg_comm_t comm_send = NULL; int i; @@ -367,7 +367,7 @@ int node(int argc, char *argv[]) } // clean unfinished comms sent - unsigned int cursor; + /* unsigned int cursor; xbt_dynar_foreach(node.comms, cursor, comm_send) { task = MSG_comm_get_task(comm_send); MSG_task_cancel(task); @@ -375,7 +375,7 @@ int node(int argc, char *argv[]) MSG_task_destroy(task); MSG_comm_destroy(comm_send); // FIXME: the task is actually not destroyed because MSG thinks that the other side (whose process is dead) is still using it - } + }*/ // leave the ring leave(&node);