Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a function called after a MSG_comm_test.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 5 Jul 2010 14:52:28 +0000 (14:52 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 5 Jul 2010 14:52:28 +0000 (14:52 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7969 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/msg/msg.h
src/msg/gos.c

index 6d4027f..4530345 100644 (file)
@@ -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);
 
 
index 943df63..b98263d 100644 (file)
@@ -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;