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
This commit is contained in:
Philip Withnall
2016-06-16 19:39:38 -04:00
parent 7ea4949cda
commit 3613b7a366
45 changed files with 103 additions and 2 deletions

View File

@@ -316,6 +316,7 @@ g_socks4a_proxy_connect_async (GProxy *proxy,
data->io_stream = g_object_ref (io_stream);
task = g_task_new (proxy, cancellable, callback, user_data);
g_task_set_source_tag (task, g_socks4a_proxy_connect_async);
g_task_set_task_data (task, data, (GDestroyNotify) free_connect_data);
hostname = g_proxy_address_get_destination_hostname (proxy_address);