summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qwindowspipewriter_p.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2021-06-12 15:35:28 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2021-06-12 22:44:53 +0300
commite650ea323f5d7146caa020b69d22ace437609883 (patch)
tree0a3830a6d37989ef81ea008ecf02f0908c7737e9 /src/corelib/io/qwindowspipewriter_p.h
parent329683795d177c0f257f6ab835914bb0b1786d0c (diff)
QWindowsPipeWriter: centralize write result handling
Both code paths (write() for the main thread and waitCallback() for the worker thread) use the same logic when processing write results. To avoid code duplication, consolidate the common part for both threads in the startAsyncWriteLocked() function. Change-Id: Ie2663b2ed221e2797a1ecbdb3fcee0ee8f030cc0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/corelib/io/qwindowspipewriter_p.h')
-rw-r--r--src/corelib/io/qwindowspipewriter_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/io/qwindowspipewriter_p.h b/src/corelib/io/qwindowspipewriter_p.h
index f8cabb225d..11d1abba59 100644
--- a/src/corelib/io/qwindowspipewriter_p.h
+++ b/src/corelib/io/qwindowspipewriter_p.h
@@ -86,9 +86,8 @@ protected:
private:
template <typename... Args>
inline bool writeImpl(Args... args);
- bool writeImplTail(QMutexLocker<QMutex> *locker);
- void startAsyncWriteLocked();
+ void startAsyncWriteLocked(QMutexLocker<QMutex> *locker);
static void CALLBACK waitCallback(PTP_CALLBACK_INSTANCE instance, PVOID context,
PTP_WAIT wait, TP_WAIT_RESULT waitResult);
bool writeCompleted(DWORD errorCode, DWORD numberOfBytesWritten);