+}
+
+void communicator::comm_check_n_destroy(msg_comm_t comm)
+{
+ xbt_assert(MSG_comm_get_status(comm) == MSG_OK);
+ MSG_comm_destroy(comm);
+}
+
+bool communicator::comm_test_n_destroy(msg_comm_t comm)
+{
+ if (MSG_comm_test(comm)) {
+ comm_check_n_destroy(comm);
+ return true;
+ } else
+ return false;