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:
Colin Walters
2010-07-10 20:09:34 -04:00
committed by Matthias Clasen
parent 7568bb66f9
commit d2fe46b476
6 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;