diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-06-16 19:39:38 -0400 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-06-29 15:16:52 +0100 |
commit | 3613b7a3660f2a7d9609faa2d6a4649bdc5f4fe3 (patch) | |
tree | a97fead7b02900669b1078455d51d86ec95f9c5d /gio/gasyncinitable.c | |
parent | 7ea4949cdac8f7a4636f92e9e9efceec90ff09e6 (diff) | |
download | glib-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/gasyncinitable.c')
-rw-r--r-- | gio/gasyncinitable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gasyncinitable.c b/gio/gasyncinitable.c index 6076fea94..db93201bc 100644 --- a/gio/gasyncinitable.c +++ b/gio/gasyncinitable.c @@ -272,6 +272,7 @@ g_async_initable_real_init_async (GAsyncInitable *initable, g_return_if_fail (G_IS_INITABLE (initable)); task = g_task_new (initable, cancellable, callback, user_data); + g_task_set_source_tag (task, g_async_initable_real_init_async); g_task_set_priority (task, io_priority); g_task_run_in_thread (task, async_init_thread); g_object_unref (task); |