mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-11 11:03:01 +01: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:
@@ -68,7 +68,11 @@ GCancellable *g_cancellable_new (void);
|
||||
gboolean g_cancellable_is_cancelled (GCancellable *cancellable);
|
||||
gboolean g_cancellable_set_error_if_cancelled (GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
int g_cancellable_get_fd (GCancellable *cancellable);
|
||||
void g_cancellable_make_pollfd (GCancellable *cancellable,
|
||||
GPollFD *pollfd);
|
||||
|
||||
GCancellable *g_cancellable_get_current (void);
|
||||
void g_cancellable_push_current (GCancellable *cancellable);
|
||||
void g_cancellable_pop_current (GCancellable *cancellable);
|
||||
|
||||
Reference in New Issue
Block a user