io: add ability to set a name for IO channels
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 30 Sep 2016 10:50:18 +0000 (11:50 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Oct 2016 07:13:10 +0000 (09:13 +0200)
commit20f4aa265ec8442be66f00ee3986a92018b44b7b
tree96a7f441c86c1c286f083571ab7dc27160b068f1
parentaf8096b2c3b16de3f6237f1ead6a657a7565272f
io: add ability to set a name for IO channels

The GSource object has ability to have a name, which is useful
when debugging performance problems with the mainloop event
callbacks that take too long. By associating a name with a
QIOChannel object, we can then set the name on any GSource
associated with the channel.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/glib-compat.h
include/io/channel.h
io/channel.c