]> AND Public Git Repository - simgrid.git/blobdiff - src/msg/gos.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Close useless tasks in the trace also (thanks to Ghislain for pointing that out)
[simgrid.git] / src / msg / gos.c
index 267309bbb81ecb1d22ecf6a7711513157c8bf956..8ba6a80846704abdff4873d5eedfc0053cf4d307 100644 (file)
@@ -53,9 +53,12 @@ MSG_error_t MSG_task_execute(m_task_t task)
 
   DEBUG1("Computing on %s", MSG_process_self()->simdata->m_host->name);
 
-  if (simdata->comp_amount == 0)
+  if (simdata->comp_amount == 0) {
+#ifdef HAVE_TRACING
+    TRACE_msg_task_execute_end (task);
+#endif
     return MSG_OK;
-
+  }
   simdata->refcount++;
   SIMIX_mutex_lock(simdata->mutex);
   simdata->compute =