summaryrefslogtreecommitdiff
path: root/src/serialport/serialport-lib.pri
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-05-13 18:58:19 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-06-08 13:16:14 +0300
commita0faf986fccdce1d36f3308dc520cdac001f5264 (patch)
tree6353717c6d50e7457c1acd9eca12c94f6335b379 /src/serialport/serialport-lib.pri
parent450156f37356f67f217de760a5df3149684dd99f (diff)
downloadqtserialport-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/serialport-lib.pri')
-rw-r--r--src/serialport/serialport-lib.pri3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/serialport/serialport-lib.pri b/src/serialport/serialport-lib.pri
index ddd31f2..b9b3c83 100644
--- a/src/serialport/serialport-lib.pri
+++ b/src/serialport/serialport-lib.pri
@@ -23,10 +23,9 @@ win32 {
SOURCES += \
$$PWD/qserialport_win.cpp \
$$PWD/qserialportinfo_win.cpp \
- $$PWD/qwinoverlappedionotifier.cpp
PRIVATE_HEADERS += \
- $$PWD/qwinoverlappedionotifier_p.h
+ $$PWD/qtntdll_p.h
LIBS_PRIVATE += -lsetupapi -ladvapi32
}