mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Bug 505361 - gunixinputstream.c assumes poll() available
Bug 509446 - portable blocking gio cancellation * gcancellable.c (g_cancellable_make_pollfd): New method to make a GPollFD for a cancellable (which is slightly more complicated on Windows than Unix). * gunixinputstream.c (g_unix_input_stream_read): * gunixoutputstream.c (g_unix_output_stream_write): Use g_cancellable_make_pollfd() and g_poll() rather than using poll() directly. * tests/unix-streams.c: test of GUnixInputStream, GUnixOutputStream, and GCancellable. svn path=/trunk/; revision=7553
This commit is contained in:
@@ -932,6 +932,7 @@ g_cancellable_new
|
||||
g_cancellable_is_cancelled
|
||||
g_cancellable_set_error_if_cancelled
|
||||
g_cancellable_get_fd
|
||||
g_cancellable_make_pollfd
|
||||
g_cancellable_get_current
|
||||
g_cancellable_pop_current
|
||||
g_cancellable_push_current
|
||||
|
Reference in New Issue
Block a user