summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qwindowspipewriter_p.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2021-04-26 19:50:14 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2021-06-19 01:01:49 +0300
commitf10491a9afe7d6e11456b2c4b2c5f6eaf1594737 (patch)
tree6873e48c622f7d43c85b5c5d9c61bf060f4f5758 /src/corelib/io/qwindowspipewriter_p.h
parent3329212815777e33dfb4697b748d10927d73f44c (diff)
QLocalSocket/Win: simplify flush()
Replacing a call to waitForWrite(0) with checkForWrite() changes nothing in logic, but saves one system call. As a result, unused functions in the QWindowsPipeWriter class have been removed. Change-Id: I34ec6310d9659f59a720056b9be54e31f2193116 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qwindowspipewriter_p.h')
-rw-r--r--src/corelib/io/qwindowspipewriter_p.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/io/qwindowspipewriter_p.h b/src/corelib/io/qwindowspipewriter_p.h
index e20f1ec90a..8a3b3068e5 100644
--- a/src/corelib/io/qwindowspipewriter_p.h
+++ b/src/corelib/io/qwindowspipewriter_p.h
@@ -53,7 +53,6 @@
//
#include <qobject.h>
-#include <qdeadlinetimer.h>
#include <qmutex.h>
#include <private/qringbuffer_p.h>
@@ -72,9 +71,7 @@ public:
bool write(const QByteArray &ba);
bool write(const char *data, qint64 size);
void stop();
- bool waitForWrite(int msecs);
bool checkForWrite() { return consumePendingAndEmit(false); }
- bool isWriteOperationActive() const;
qint64 bytesToWrite() const;
HANDLE syncEvent() const { return syncHandle; }
@@ -92,7 +89,6 @@ private:
static void CALLBACK waitCallback(PTP_CALLBACK_INSTANCE instance, PVOID context,
PTP_WAIT wait, TP_WAIT_RESULT waitResult);
bool writeCompleted(DWORD errorCode, DWORD numberOfBytesWritten);
- bool waitForNotification(const QDeadlineTimer &deadline);
bool consumePendingAndEmit(bool allowWinActPosting);
HANDLE handle;