fix background scheduler with multiple tasks
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 28 Jul 2004 22:04:26 +0000 (22:04 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 28 Jul 2004 22:04:26 +0000 (22:04 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@643 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c

index b210fbba087ba90650e0e71bb0f77a2276cb0ed4..1ce869990fe2e10ee69ad30f18e4b7773daf913d 100644 (file)
@@ -1174,12 +1174,16 @@ gboolean lttvwindowtraces_process_pending_requests(LttvTrace *trace)
             }
           }
         }
-        
-        /* - return FALSE (scheduler stopped) */
-        g_debug("Background computation scheduler stopped");
-        g_info("Background computation finished for trace %p", trace);
-        /* FIXME : remove status bar info, need context id and message id */
-        ret_val = FALSE;
+        /* - if list_out is empty */
+        if(g_slist_length(*list_out) == 0) {
+          /* - return FALSE (scheduler stopped) */
+          g_debug("Background computation scheduler stopped");
+          g_info("Background computation finished for trace %p", trace);
+          /* FIXME : remove status bar info, need context id and message id */
+          ret_val = FALSE;
+        } else {
+          ret_val = TRUE;
+        }
       } else {
         /* 3.4 else, end of trace not reached */
         /* - return TRUE (scheduler still registered) */
This page took 0.024451 seconds and 4 git commands to generate.