mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
line-visualizer: lower task priority
Keep task priorities lower than the Gtk main loop.
This commit is contained in:
@ -640,6 +640,7 @@ sp_line_visualizer_row_load_data_async (SpLineVisualizerRow *self,
|
|||||||
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
|
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
|
||||||
|
|
||||||
task = g_task_new (self, cancellable, callback, user_data);
|
task = g_task_new (self, cancellable, callback, user_data);
|
||||||
|
g_task_set_priority (task, G_PRIORITY_LOW);
|
||||||
g_task_set_source_tag (task, sp_line_visualizer_row_load_data_async);
|
g_task_set_source_tag (task, sp_line_visualizer_row_load_data_async);
|
||||||
|
|
||||||
if (priv->reader == NULL)
|
if (priv->reader == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user