mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43: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:
@@ -803,6 +803,7 @@ g_file_enumerator_real_next_files_async (GFileEnumerator *enumerator,
|
||||
GTask *task;
|
||||
|
||||
task = g_task_new (enumerator, cancellable, callback, user_data);
|
||||
g_task_set_source_tag (task, g_file_enumerator_real_next_files_async);
|
||||
g_task_set_task_data (task, GINT_TO_POINTER (num_files), NULL);
|
||||
g_task_set_priority (task, io_priority);
|
||||
|
||||
@@ -849,6 +850,7 @@ g_file_enumerator_real_close_async (GFileEnumerator *enumerator,
|
||||
GTask *task;
|
||||
|
||||
task = g_task_new (enumerator, cancellable, callback, user_data);
|
||||
g_task_set_source_tag (task, g_file_enumerator_real_close_async);
|
||||
g_task_set_priority (task, io_priority);
|
||||
|
||||
g_task_run_in_thread (task, close_async_thread);
|
||||
|
Reference in New Issue
Block a user