summaryrefslogtreecommitdiff
path: root/gio/gdbusconnection.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2016-06-16 19:39:38 -0400
committerPhilip Withnall <philip.withnall@collabora.co.uk>2016-06-29 15:16:52 +0100
commit3613b7a3660f2a7d9609faa2d6a4649bdc5f4fe3 (patch)
treea97fead7b02900669b1078455d51d86ec95f9c5d /gio/gdbusconnection.c
parent7ea4949cdac8f7a4636f92e9e9efceec90ff09e6 (diff)
downloadglib-3613b7a3660f2a7d9609faa2d6a4649bdc5f4fe3.tar.gz
gio: Add source tags to various GTasks constructed in GLib
This makes them easier to identify when debugging and profiling. This patch was somewhat less than interesting to write. https://bugzilla.gnome.org/show_bug.cgi?id=767765
Diffstat (limited to 'gio/gdbusconnection.c')
-rw-r--r--gio/gdbusconnection.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 313670bfa..8977c671a 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -1250,6 +1250,7 @@ g_dbus_connection_flush (GDBusConnection *connection,
g_return_if_fail (G_IS_DBUS_CONNECTION (connection));
task = g_task_new (connection, cancellable, callback, user_data);
+ g_task_set_source_tag (task, g_dbus_connection_flush);
g_task_run_in_thread (task, flush_in_thread_func);
g_object_unref (task);
}
@@ -1446,6 +1447,7 @@ g_dbus_connection_close (GDBusConnection *connection,
g_assert (connection->worker != NULL);
task = g_task_new (connection, cancellable, callback, user_data);
+ g_task_set_source_tag (task, g_dbus_connection_close);
_g_dbus_worker_close (connection->worker, task);
g_object_unref (task);
}
@@ -1904,6 +1906,8 @@ g_dbus_connection_send_message_with_reply_unlocked (GDBusConnection *connect
data = g_slice_new0 (SendMessageData);
task = g_task_new (connection, cancellable, callback, user_data);
+ g_task_set_source_tag (task,
+ g_dbus_connection_send_message_with_reply_unlocked);
g_task_set_task_data (task, data, (GDestroyNotify) send_message_data_free);
if (g_task_return_error_if_cancelled (task))
@@ -5772,6 +5776,7 @@ g_dbus_connection_call_internal (GDBusConnection *connection,
state->reply_type = g_variant_type_copy (reply_type);
task = g_task_new (connection, cancellable, callback, user_data);
+ g_task_set_source_tag (task, g_dbus_connection_call_internal);
g_task_set_task_data (task, state, (GDestroyNotify) call_state_free);
g_dbus_connection_send_message_with_reply (connection,
@@ -7312,6 +7317,7 @@ g_bus_get (GBusType bus_type,
GError *error = NULL;
task = g_task_new (NULL, cancellable, callback, user_data);
+ g_task_set_source_tag (task, g_bus_get);
connection = get_uninitialized_connection (bus_type, cancellable, &error);
if (connection == NULL)