Non-overlapped serial comms
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have opened a comm port for non-overlapped I/O and set up a thread to watch for read events with WaitCommEvent. I have my main thread doing writes with WriteFile. Neither thread uses any windows. The problem is that the WriteFile seems to be blocked by the WaitCommEvent in the background thread. This makes sense for file I/O but for serial comms the read and write operations should be completely independent and not block each other. I can overcome this by using overlapped I/O but it complicates things horribly. Question: Does anyone know of a way to stop the comm Wait from blocking a non-overlapped serial write?