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:
@@ -704,6 +704,7 @@ g_buffered_output_stream_flush_async (GOutputStream *stream,
|
||||
fdata->close_stream = FALSE;
|
||||
|
||||
task = g_task_new (stream, cancellable, callback, data);
|
||||
g_task_set_source_tag (task, g_buffered_output_stream_flush_async);
|
||||
g_task_set_task_data (task, fdata, free_flush_data);
|
||||
g_task_set_priority (task, io_priority);
|
||||
|
||||
@@ -735,6 +736,7 @@ g_buffered_output_stream_close_async (GOutputStream *stream,
|
||||
fdata->close_stream = TRUE;
|
||||
|
||||
task = g_task_new (stream, cancellable, callback, data);
|
||||
g_task_set_source_tag (task, g_buffered_output_stream_close_async);
|
||||
g_task_set_task_data (task, fdata, free_flush_data);
|
||||
g_task_set_priority (task, io_priority);
|
||||
|
||||
|
Reference in New Issue
Block a user