Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Close useless tasks in the trace also (thanks to Ghislain for pointing that out)
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 15 Apr 2010 13:31:43 +0000 (13:31 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 15 Apr 2010 13:31:43 +0000 (13:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7599 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/gos.c

index 267309b..8ba6a80 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 =