summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d034a28)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9454
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
int node(int argc, char *argv[])
{
double init_time = MSG_get_clock();
int node(int argc, char *argv[])
{
double init_time = MSG_get_clock();
+ /*m_task_t task = NULL;*/
m_task_t task_received = NULL;
msg_comm_t comm_send = NULL;
int i;
m_task_t task_received = NULL;
msg_comm_t comm_send = NULL;
int i;
}
// clean unfinished comms sent
}
// clean unfinished comms sent
+ /* unsigned int cursor;
xbt_dynar_foreach(node.comms, cursor, comm_send) {
task = MSG_comm_get_task(comm_send);
MSG_task_cancel(task);
xbt_dynar_foreach(node.comms, cursor, comm_send) {
task = MSG_comm_get_task(comm_send);
MSG_task_cancel(task);
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
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);
// leave the ring
leave(&node);