[wing/wip/nacho/poll-stream] IMplement is readable
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing/wip/nacho/poll-stream] IMplement is readable
- Date: Wed, 28 Nov 2018 15:17:30 +0000 (UTC)
commit 48e34877715035d7be79896158343664ea77e0d3
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Wed Nov 28 16:14:35 2018 +0100
IMplement is readable
wing/winginputstream.c | 4 ++--
wing/winginputstream.h | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/wing/winginputstream.c b/wing/winginputstream.c
index e7628e7..c1c94b3 100644
--- a/wing/winginputstream.c
+++ b/wing/winginputstream.c
@@ -280,9 +280,9 @@ wing_input_stream_init (WingInputStream *wing_stream)
static gboolean
wing_input_stream_pollable_is_readable (GPollableInputStream *pollable)
{
- GSocketInputStream *input_stream = G_SOCKET_INPUT_STREAM (pollable);
+ WingInputStream *input_stream = WING_INPUT_STREAM (pollable);
- return g_socket_condition_check (input_stream->priv->socket, G_IO_IN);
+ return WaitForSingleObject (input_stream->priv->overlapped.hEvent, 0) == WAIT_OBJECT_0
}
static GSource *
diff --git a/wing/winginputstream.h b/wing/winginputstream.h
index c0c682a..7c09b94 100644
--- a/wing/winginputstream.h
+++ b/wing/winginputstream.h
@@ -24,6 +24,7 @@
#define WING_INPUT_STREAM_H
#include <gio/gio.h>
+#include <wing/wingversionmacros.h>
G_BEGIN_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]