mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 00:13:40 +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:
@@ -409,7 +409,7 @@ g_unix_connection_send_credentials_async (GUnixConnection *connection,
|
||||
GTask *task;
|
||||
|
||||
task = g_task_new (connection, cancellable, callback, user_data);
|
||||
|
||||
g_task_set_source_tag (task, g_unix_connection_send_credentials_async);
|
||||
g_task_run_in_thread (task, send_credentials_async_thread);
|
||||
}
|
||||
|
||||
@@ -670,7 +670,7 @@ g_unix_connection_receive_credentials_async (GUnixConnection *connection,
|
||||
GTask *task;
|
||||
|
||||
task = g_task_new (connection, cancellable, callback, user_data);
|
||||
|
||||
g_task_set_source_tag (task, g_unix_connection_receive_credentials_async);
|
||||
g_task_run_in_thread (task, receive_credentials_async_thread);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user