mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +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
@@ -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 ());
|
||||
|
Reference in New Issue
Block a user