[gnome-builder/gnome-builder-3-28] subprocess: don't use unnecessary threads
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] subprocess: don't use unnecessary threads
- Date: Wed, 11 Apr 2018 09:29:23 +0000 (UTC)
commit a1a1927cd57483abad6c72a7d8c785d7f4647c57
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 11 02:26:52 2018 -0700
subprocess: don't use unnecessary threads
This removes the unnecessary thread to spawn processes to match
how things are on master now that we have the task pool.
src/libide/subprocess/ide-subprocess-launcher.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/subprocess/ide-subprocess-launcher.c b/src/libide/subprocess/ide-subprocess-launcher.c
index 8345bf0cf..69585bef3 100644
--- a/src/libide/subprocess/ide-subprocess-launcher.c
+++ b/src/libide/subprocess/ide-subprocess-launcher.c
@@ -1,6 +1,6 @@
/* ide-subprocess-launcher.c
*
- * Copyright © 2016 Christian Hergert <chergert redhat com>
+ * Copyright 2016 Christian Hergert <chergert redhat com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -403,9 +403,9 @@ ide_subprocess_launcher_real_spawn (IdeSubprocessLauncher *self,
}
if (should_use_breakout_process (self))
- g_task_run_in_thread_sync (task, ide_subprocess_launcher_spawn_host_worker);
+ ide_subprocess_launcher_spawn_host_worker (task, self, NULL, cancellable);
else
- g_task_run_in_thread_sync (task, ide_subprocess_launcher_spawn_worker);
+ ide_subprocess_launcher_spawn_worker (task, self, NULL, cancellable);
return g_task_propagate_pointer (task, error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]