From 3710295e1cd7cd1d4ec53bd4950f0f078914b7e0 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 28 Jul 2004 22:04:26 +0000 Subject: [PATCH] fix background scheduler with multiple tasks git-svn-id: http://ltt.polymtl.ca/svn@643 04897980-b3bd-0310-b5e0-8ef037075253 --- .../gui/lttvwindow/lttvwindow/lttvwindowtraces.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c index b210fbba..1ce86999 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c @@ -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) */ -- 2.34.1