mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio: Add names to idles and timeouts
This isn't too useful for some of the "return result in idle" functions, but it's better than nothing. https://bugzilla.gnome.org/show_bug.cgi?id=726872
This commit is contained in:
@@ -281,6 +281,7 @@ call_destroy_notify (GMainContext *context,
|
||||
call_destroy_notify_data_in_idle,
|
||||
data,
|
||||
(GDestroyNotify) call_destroy_notify_data_free);
|
||||
g_source_set_name (idle_source, "[gio] call_destroy_notify_data_in_idle");
|
||||
g_source_attach (idle_source, data->context);
|
||||
g_source_unref (idle_source);
|
||||
|
||||
@@ -1415,6 +1416,7 @@ schedule_closed_unlocked (GDBusConnection *connection,
|
||||
emit_closed_in_idle,
|
||||
data,
|
||||
(GDestroyNotify) emit_closed_data_free);
|
||||
g_source_set_name (idle_source, "[gio] emit_closed_in_idle");
|
||||
g_source_attach (idle_source, connection->main_context_at_construction);
|
||||
g_source_unref (idle_source);
|
||||
}
|
||||
@@ -1917,6 +1919,7 @@ send_message_with_reply_cancelled_cb (GCancellable *cancellable,
|
||||
send_message_with_reply_cancelled_idle_cb,
|
||||
send_message_data_ref (data),
|
||||
(GDestroyNotify) send_message_data_unref);
|
||||
g_source_set_name (idle_source, "[gio] send_message_with_reply_cancelled_idle_cb");
|
||||
g_source_attach (idle_source, data->main_context);
|
||||
g_source_unref (idle_source);
|
||||
}
|
||||
@@ -3902,6 +3905,7 @@ schedule_callbacks (GDBusConnection *connection,
|
||||
emit_signal_instance_in_idle_cb,
|
||||
signal_instance,
|
||||
(GDestroyNotify) signal_instance_free);
|
||||
g_source_set_name (idle_source, "[gio] emit_signal_instance_in_idle_cb");
|
||||
g_source_attach (idle_source, subscriber->context);
|
||||
g_source_unref (idle_source);
|
||||
}
|
||||
@@ -4392,6 +4396,10 @@ validate_and_maybe_schedule_property_getset (GDBusConnection *connect
|
||||
is_get ? invoke_get_property_in_idle_cb : invoke_set_property_in_idle_cb,
|
||||
property_data,
|
||||
(GDestroyNotify) property_data_free);
|
||||
if (is_get)
|
||||
g_source_set_name (idle_source, "[gio] invoke_get_property_in_idle_cb");
|
||||
else
|
||||
g_source_set_name (idle_source, "[gio] invoke_set_property_in_idle_cb");
|
||||
g_source_attach (idle_source, main_context);
|
||||
g_source_unref (idle_source);
|
||||
|
||||
@@ -4609,6 +4617,7 @@ validate_and_maybe_schedule_property_get_all (GDBusConnection *connec
|
||||
invoke_get_all_properties_in_idle_cb,
|
||||
property_get_all_data,
|
||||
(GDestroyNotify) property_get_all_data_free);
|
||||
g_source_set_name (idle_source, "[gio] invoke_get_all_properties_in_idle_cb");
|
||||
g_source_attach (idle_source, main_context);
|
||||
g_source_unref (idle_source);
|
||||
|
||||
@@ -4925,6 +4934,7 @@ schedule_method_call (GDBusConnection *connection,
|
||||
call_in_idle_cb,
|
||||
invocation,
|
||||
g_object_unref);
|
||||
g_source_set_name (idle_source, "[gio] call_in_idle_cb");
|
||||
g_source_attach (idle_source, main_context);
|
||||
g_source_unref (idle_source);
|
||||
}
|
||||
@@ -6500,6 +6510,7 @@ subtree_message_func (GDBusConnection *connection,
|
||||
process_subtree_vtable_message_in_idle_cb,
|
||||
data,
|
||||
(GDestroyNotify) subtree_deferred_data_free);
|
||||
g_source_set_name (idle_source, "[gio] process_subtree_vtable_message_in_idle_cb");
|
||||
g_source_attach (idle_source, es->context);
|
||||
g_source_unref (idle_source);
|
||||
|
||||
|
Reference in New Issue
Block a user