[gnome-builder/wip/chergert/jsonrpc-gvariant] jsonrpc: set task priority
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/jsonrpc-gvariant] jsonrpc: set task priority
- Date: Sat, 18 Mar 2017 07:40:35 +0000 (UTC)
commit 7dc3f1d16fa7eefa53fab63b33b2270b8eb45897
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 18 00:32:19 2017 -0700
jsonrpc: set task priority
Ensure that we connect at lower priority than UI
contrib/jsonrpc-glib/jsonrpc-output-stream.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/contrib/jsonrpc-glib/jsonrpc-output-stream.c b/contrib/jsonrpc-glib/jsonrpc-output-stream.c
index 6d59585..b37198c 100644
--- a/contrib/jsonrpc-glib/jsonrpc-output-stream.c
+++ b/contrib/jsonrpc-glib/jsonrpc-output-stream.c
@@ -329,6 +329,7 @@ jsonrpc_output_stream_write_message_async (JsonrpcOutputStream *self,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, jsonrpc_output_stream_write_message_async);
+ g_task_set_priority (task, G_PRIORITY_LOW);
if (NULL == (bytes = jsonrpc_output_stream_create_bytes (self, message, &error)))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]