mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
Annotate all custom GIO GSource using g_source_set_name
Naming the sources allows easier debugging with e.g. SystemTap probes. https://bugzilla.gnome.org/show_bug.cgi?id=620536
This commit is contained in:
committed by
Matthias Clasen
parent
7568bb66f9
commit
d2fe46b476
@@ -2401,6 +2401,7 @@ socket_source_new (GSocket *socket,
|
||||
condition |= G_IO_HUP | G_IO_ERR;
|
||||
|
||||
source = g_source_new (&socket_source_funcs, sizeof (GSocketSource));
|
||||
g_source_set_name (source, "GSocket");
|
||||
socket_source = (GSocketSource *)source;
|
||||
|
||||
socket_source->socket = g_object_ref (socket);
|
||||
|
Reference in New Issue
Block a user