[wing/wip/nacho/poll-stream] More on reset events
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing/wip/nacho/poll-stream] More on reset events
- Date: Thu, 29 Nov 2018 09:27:59 +0000 (UTC)
commit 31d9cd90ed0e55b2747c9a82ab2f8a98ba29fdbe
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Thu Nov 29 10:27:44 2018 +0100
More on reset events
wing/winginputstream.c | 2 ++
wing/wingoutputstream.c | 1 +
2 files changed, 3 insertions(+)
---
diff --git a/wing/winginputstream.c b/wing/winginputstream.c
index eac676d..5343513 100644
--- a/wing/winginputstream.c
+++ b/wing/winginputstream.c
@@ -193,6 +193,7 @@ read_internal (GInputStream *stream,
&nread, cancellable))
{
retval = nread;
+ ResetEvent (priv->overlap.hEvent);
goto end;
}
}
@@ -208,6 +209,7 @@ read_internal (GInputStream *stream,
* parameter specifies, ReadFile returns FALSE and
* GetLastError returns ERROR_MORE_DATA */
retval = nread;
+ ResetEvent (priv->overlap.hEvent);
goto end;
}
else if (errsv == ERROR_HANDLE_EOF ||
diff --git a/wing/wingoutputstream.c b/wing/wingoutputstream.c
index ef160d5..5f75060 100644
--- a/wing/wingoutputstream.c
+++ b/wing/wingoutputstream.c
@@ -194,6 +194,7 @@ write_internal (GOutputStream *stream,
&nwritten, cancellable))
{
retval = nwritten;
+ ResetEvent (priv->overlap.hEvent);
goto end;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]