Simplify GCancellable support on win32
authorAlexander Larsson <alexl@redhat.com>
Wed, 6 May 2009 11:10:58 +0000 (13:10 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 6 May 2009 11:14:04 +0000 (13:14 +0200)
commite10edefff1308cad307d954b17163538a3c7f20a
treeb0949a8c03cf34714fa4b329663e48757ee3e94f
parent2fff3026efbaf7e480d1a166c7166c44c6643567
Simplify GCancellable support on win32

There is no need to have a GIOChannel in the GPollFD in
g_cancellable_create_pollfd. All we need is an Event object that
we signal when cancelling and reset when resetting.

Also, supporting g_cancellable_get_fd on Windows using _pipe is useless
as it doesn't work with any corresponding poll() function, so just don't
support that on win32.

I tested this with the cancellation support in GSocket from gnio.
gio/gcancellable.c