From 9eb73333bab738e12a11bfcc1147def644eb42a9 Mon Sep 17 00:00:00 2001 From: Samuel Lepetit Date: Thu, 14 Jun 2012 18:58:20 +0200 Subject: [PATCH] Update MSG_comm_wait documentation --- src/msg/msg_gos.c | 3 ++- src/msg/msg_vm.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/msg/msg_gos.c b/src/msg/msg_gos.c index c0cce18339..061ddf499d 100644 --- a/src/msg/msg_gos.c +++ b/src/msg/msg_gos.c @@ -625,7 +625,8 @@ void MSG_comm_destroy(msg_comm_t comm) * * It takes two parameters. * \param comm the communication to wait. - * \param timeout Wait until the communication terminates or the timeout occurs + * \param timeout Wait until the communication terminates or the timeout +occurs. You can provide a -1 timeout to obtain an infinite timeout. * \return MSG_error_t */ MSG_error_t MSG_comm_wait(msg_comm_t comm, double timeout) diff --git a/src/msg/msg_vm.c b/src/msg/msg_vm.c index 4eb77b0ee4..b8e800fea4 100644 --- a/src/msg/msg_vm.c +++ b/src/msg/msg_vm.c @@ -166,9 +166,9 @@ void MSG_vm_destroy(msg_vm_t vm) { unsigned int cpt; m_process_t process; xbt_dynar_foreach(vm->processes,cpt,process) { - //FIXME: Slow ? - simdata_process_t simdata = simcall_process_get_data(process); - simdata->vm = NULL; + //FIXME: Slow ? + simdata_process_t simdata = simcall_process_get_data(process); + simdata->vm = NULL; } xbt_dynar_free(&vm->processes); xbt_free(vm); -- 2.20.1