diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2019-05-13 18:58:19 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2019-06-08 13:16:14 +0300 |
commit | a0faf986fccdce1d36f3308dc520cdac001f5264 (patch) | |
tree | 6353717c6d50e7457c1acd9eca12c94f6335b379 /src/serialport/qserialport.h | |
parent | 450156f37356f67f217de760a5df3149684dd99f (diff) | |
download | qtserialport-a0faf986fccdce1d36f3308dc520cdac001f5264.tar.gz |
QSerialPort: Port to alertable I/O functions on Windows
This commit removes the QWinOverlappedIoNotifier in favor of alertable
I/O functions like {Read|Write}FileEx(). The reason is that the
QWinOverlappedIoNotifier is very complex to maintain.
To use the alertable functions in the serial port we need an
alertable analog of WaitCommEvent function. This function does not
exist in the Win32 API, but we implement it trough a set of the
system NtXXX and RtlXXX functions, which are resolved dynamically.
This patch was tested with auto-tests and the examples using the:
* com0com virtual serial port driver.
* eltima virtual serial port driver.
* pl2303 USB/serial converters.
Task-number: QTBUG-74961
Change-Id: Idc428173eee7a1066a4693de00aa38416c4ee86c
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/serialport/qserialport.h')
-rw-r--r-- | src/serialport/qserialport.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/serialport/qserialport.h b/src/serialport/qserialport.h index 9a5c1d0..c4c7367 100644 --- a/src/serialport/qserialport.h +++ b/src/serialport/qserialport.h @@ -306,7 +306,6 @@ private: #if defined(Q_OS_WIN32) Q_PRIVATE_SLOT(d_func(), bool _q_startAsyncWrite()) - Q_PRIVATE_SLOT(d_func(), void _q_notified(quint32, quint32, OVERLAPPED*)) #endif }; |