mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23: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:
@@ -1679,6 +1679,7 @@ async_initable_init_second_async (GAsyncInitable *initable,
|
||||
GTask *task;
|
||||
|
||||
task = g_task_new (proxy, cancellable, callback, user_data);
|
||||
g_task_set_source_tag (task, async_initable_init_second_async);
|
||||
g_task_set_priority (task, io_priority);
|
||||
|
||||
/* Check name ownership asynchronously - possibly also start the service */
|
||||
@@ -1848,6 +1849,7 @@ async_initable_init_async (GAsyncInitable *initable,
|
||||
GTask *task;
|
||||
|
||||
task = g_task_new (proxy, cancellable, callback, user_data);
|
||||
g_task_set_source_tag (task, async_initable_init_async);
|
||||
g_task_set_priority (task, io_priority);
|
||||
|
||||
if (proxy->priv->bus_type != G_BUS_TYPE_NONE)
|
||||
@@ -2674,6 +2676,7 @@ g_dbus_proxy_call_internal (GDBusProxy *proxy,
|
||||
{
|
||||
my_callback = (GAsyncReadyCallback) reply_cb;
|
||||
task = g_task_new (proxy, cancellable, callback, user_data);
|
||||
g_task_set_source_tag (task, g_dbus_proxy_call_internal);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user