git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9538
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
}
/* FIXME auto-destroy comms from SIMIX to avoid this request */
- SIMIX_req_comm_destroy(comm->s_comm);
+ /*SIMIX_req_comm_destroy(comm->s_comm);*/
free(comm);
}
xbt_ex_free(e);
}
if (comm != NULL) {
- SIMIX_req_comm_destroy(comm);
+ //SIMIX_req_comm_destroy(comm);
}
if (ret != MSG_HOST_FAILURE &&
}
if (comm != NULL) {
- SIMIX_req_comm_destroy(comm);
+ //SIMIX_req_comm_destroy(comm);
}
process->simdata->waiting_task = NULL;
void SIMIX_comm_finish(smx_action_t action)
{
+ unsigned int destroy_count = 0;
smx_req_t req;
while ((req = xbt_fifo_shift(action->request_list))) {
req->issuer->waiting_action = NULL;
SIMIX_request_answer(req);
+ destroy_count++;
}
+
+ while(destroy_count-- > 0)
+ SIMIX_comm_destroy(action);
}
void SIMIX_post_comm(smx_action_t action)