Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't auto-destroy the MSG_comm_t in MSG_comm_wait(), it's the
[simgrid.git] / src / msg / gos.c
index ba361cc..899b135 100644 (file)
@@ -67,7 +67,7 @@ MSG_error_t MSG_task_execute(m_task_t task)
                            simdata->computation_amount);
   SIMIX_req_host_execution_set_priority(simdata->compute, simdata->priority);
 #ifdef HAVE_TRACING
-  SIMIX_req_host_execution_set_category(simdata->compute, task->category);
+  SIMIX_req_set_category(simdata->compute, task->category);
 #endif
 
   self->simdata->waiting_action = simdata->compute;
@@ -498,7 +498,6 @@ MSG_error_t MSG_comm_wait(msg_comm_t comm, double timeout)
       task = (m_task_t) SIMIX_req_comm_get_src_buff(comm);
       task->simdata->refcount--;
     }
-    SIMIX_req_comm_destroy(comm);
 
     /* FIXME: these functions are not tracable */
   }