X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/00e8231fa94528961cddaa1fe35e232de5438e76..8a7a5f10297e28c98d9c77e2985e96627a43e95e:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index 4c4480e2ee..aefe0ec344 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -422,6 +422,9 @@ msg_comm_t MSG_task_isend(m_task_t task, const char *alias) * * \param task a #m_task_t to send on another location. * \param alias name of the mailbox to sent the task to + * \param cleanup a function to destroy the task if the + * communication fails (if NULL, MSG_task_destroy() will + * be used by default) */ void MSG_task_dsend(m_task_t task, const char *alias, void_f_pvoid_t cleanup) { @@ -431,6 +434,10 @@ void MSG_task_dsend(m_task_t task, const char *alias, void_f_pvoid_t cleanup) CHECK_HOST(); + if (cleanup == NULL) { + cleanup = (void_f_pvoid_t) MSG_task_destroy; + } + /* FIXME: these functions are not traceable */ /* Prepare the task to send */ @@ -597,7 +604,7 @@ void MSG_comm_destroy(msg_comm_t comm) } /* 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); }