Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update MSG_comm_wait documentation
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Thu, 14 Jun 2012 16:58:20 +0000 (18:58 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Thu, 14 Jun 2012 16:58:20 +0000 (18:58 +0200)
src/msg/msg_gos.c
src/msg/msg_vm.c

index c0cce18..061ddf4 100644 (file)
@@ -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)
index 4eb77b0..b8e800f 100644 (file)
@@ -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);