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/goutputstream.c | |
parent | 7ea4949cdac8f7a4636f92e9e9efceec90ff09e6 (diff) |
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/goutputstream.c')
-rw-r--r-- | gio/goutputstream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/goutputstream.c b/gio/goutputstream.c index 9320f8efa..db9145074 100644 --- a/gio/goutputstream.c +++ b/gio/goutputstream.c @@ -998,6 +998,7 @@ g_output_stream_write_all_async (GOutputStream *stream, data->buffer = buffer; data->to_write = count; + g_task_set_source_tag (task, g_output_stream_write_all_async); g_task_set_task_data (task, data, free_async_write_all); g_task_set_priority (task, io_priority); @@ -1115,6 +1116,7 @@ g_output_stream_write_bytes_async (GOutputStream *stream, data = g_bytes_get_data (bytes, &size); task = g_task_new (stream, cancellable, callback, user_data); + g_task_set_source_tag (task, g_output_stream_write_bytes_async); g_task_set_task_data (task, g_bytes_ref (bytes), (GDestroyNotify) g_bytes_unref); |