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

@@ -500,6 +500,7 @@ g_unix_input_stream_read_async (GInputStream *stream,
source = _g_fd_source_new (unix_stream->priv->fd,
G_IO_IN,
cancellable);
g_source_set_name (source, "GUnixInputStream");
g_source_set_callback (source, (GSourceFunc)read_async_cb, data, g_free);
g_source_attach (source, g_main_context_get_thread_default ());