What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?



Hi,

I am attaching the source code of a small test program here.

Could somebody enlighten me why after an I/O Channel operation (g_io_channel_shutdown() here), the GTK+ program started to use up 100% CPU?

Is it monitoring something? Do I need to undo g_io_add_watch() somehow? What operation is needed to not get into such situation?

Thanks.


--
Daniel Yek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]