summaryrefslogtreecommitdiff
path: root/gio/gsocketclient.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/gsocketclient.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/gsocketclient.c')
-rw-r--r--gio/gsocketclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 2b339d75c..2a83665d3 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -1679,6 +1679,7 @@ g_socket_client_connect_async (GSocketClient *client,
data->enumerator = g_socket_connectable_enumerate (connectable);
data->task = g_task_new (client, cancellable, callback, user_data);
+ g_task_set_source_tag (data->task, g_socket_client_connect_async);
g_task_set_task_data (data->task, data, (GDestroyNotify)g_socket_client_async_connect_data_free);
enumerator_next_async (data);