X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/102e02838df15cf7491c8fbc0828358d88caf7df..ca7162936235b0732afe3a675ca09fe11f915eab:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index 4c4480e2ee..8093c97664 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 */