From: compudj Date: Wed, 28 Jul 2004 22:04:26 +0000 (+0000) Subject: fix background scheduler with multiple tasks X-Git-Tag: v0.12.20~2846 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3710295e1cd7cd1d4ec53bd4950f0f078914b7e0;p=lttv.git fix background scheduler with multiple tasks git-svn-id: http://ltt.polymtl.ca/svn@643 04897980-b3bd-0310-b5e0-8ef037075253 --- 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) */