Web lists-archives.com

Re: g_io_channel_win32_poll() Problem on Windows

On Fri, Jul 28, 2017 at 4:37 AM, LRN <lrn1986@xxxxxxxxx> wrote:

After trying this myself (for unrelated reasons), i found that *only*
giochannel GSource does WSAEventSelect() on a socket event (in
g_io_win32_prepare()) to bind it to an event handle, which can then be polled.
If you are not using a main loop (and GSource), then this doesn't happen, and
the events you feed to g_poll() are completely inert.

This is true on all platforms. The "responsiveness" of all GSources depends on a main loop that polls/selects/does-some-platform-equivalent-of-wait-for-something.
gtk-devel-list mailing list