From: navarrop Date: Mon, 5 Jul 2010 14:52:28 +0000 (+0000) Subject: Add a function called after a MSG_comm_test. X-Git-Tag: v3_5~848 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bc1e3bb10f6d78b9d866b0b8e16a1d9bd37a600b Add a function called after a MSG_comm_test. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7969 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/msg/msg.h b/include/msg/msg.h index 6d4027fb38..4530345158 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -168,6 +168,7 @@ XBT_PUBLIC(MSG_error_t) XBT_PUBLIC(msg_comm_t) MSG_task_isend(m_task_t task, const char *alias); XBT_PUBLIC(msg_comm_t) MSG_task_irecv(m_task_t * task, const char *alias); XBT_PUBLIC(int) MSG_comm_test(msg_comm_t comm); +void MSG_comm_destroy(msg_comm_t comm); XBT_PUBLIC(MSG_error_t) MSG_comm_wait(msg_comm_t comm,double timeout); diff --git a/src/msg/gos.c b/src/msg/gos.c index 943df6371d..b98263d5ca 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -470,6 +470,10 @@ int MSG_comm_test(msg_comm_t comm) { return SIMIX_network_test(comm); } +void MSG_comm_destroy(msg_comm_t comm) { + SIMIX_communication_destroy(comm); +} + MSG_error_t MSG_comm_wait(msg_comm_t comm, double timeout) { xbt_ex_t e; MSG_error_t res = MSG_OK;