mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-11 02:53:40 +01: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
@@ -343,6 +343,7 @@ g_io_unix_create_watch (GIOChannel *channel,
|
||||
|
||||
|
||||
source = g_source_new (&g_io_watch_funcs, sizeof (GIOUnixWatch));
|
||||
g_source_set_name (source, "GIOChannel (Unix)");
|
||||
watch = (GIOUnixWatch *)source;
|
||||
|
||||
watch->channel = channel;
|
||||
|
||||
@@ -1166,6 +1166,7 @@ g_io_win32_msg_create_watch (GIOChannel *channel,
|
||||
GSource *source;
|
||||
|
||||
source = g_source_new (&g_io_watch_funcs, sizeof (GIOWin32Watch));
|
||||
g_source_set_name (source, "GIOChannel (Win32)");
|
||||
watch = (GIOWin32Watch *)source;
|
||||
|
||||
watch->channel = channel;
|
||||
|
||||
Reference in New Issue
Block a user