Cygwin: serial: revamp overlapped IO in read and select

Get rid of WaitCommEvent and using overlapped_armed to share the
same overlapped operation between read and select.  Rather, make
sure to cancel the overlapped IO before leaving any of these functions.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2020-03-18 21:14:06 +01:00
parent 93b491c4f2
commit 2929599590
4 changed files with 85 additions and 199 deletions

View File

@ -1687,7 +1687,6 @@ class fhandler_serial: public fhandler_base
int dtr; /* for Windows 9x purposes only */
public:
int overlapped_armed;
OVERLAPPED io_status;
/* Constructor */