mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user