[gnome-builder] breakout: lower priority with flatpak processes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] breakout: lower priority with flatpak processes
- Date: Thu, 21 Jun 2018 19:38:24 +0000 (UTC)
commit efe4aba90cf6ec71fa234190c5bf2a61ec773b56
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 21 12:37:41 2018 -0700
breakout: lower priority with flatpak processes
We can't do this for gsubprocess sadly, but we can for these.
src/libide/subprocess/ide-breakout-subprocess.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libide/subprocess/ide-breakout-subprocess.c b/src/libide/subprocess/ide-breakout-subprocess.c
index aa52b1068..d7b10341b 100644
--- a/src/libide/subprocess/ide-breakout-subprocess.c
+++ b/src/libide/subprocess/ide-breakout-subprocess.c
@@ -309,6 +309,7 @@ ide_breakout_subprocess_wait_async (IdeSubprocess *subprocess,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, ide_breakout_subprocess_wait_async);
+ g_task_set_priority (task, G_PRIORITY_DEFAULT_IDLE);
locker = g_mutex_locker_new (&self->waiter_mutex);
@@ -755,6 +756,7 @@ ide_breakout_subprocess_communicate_internal (IdeBreakoutSubprocess *subprocess,
task = g_task_new (subprocess, cancellable, callback, user_data);
g_task_set_source_tag (task, ide_breakout_subprocess_communicate_internal);
+ g_task_set_priority (task, G_PRIORITY_DEFAULT_IDLE);
state = g_slice_new0 (CommunicateState);
g_task_set_task_data (task, state, ide_subprocess_communicate_state_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]