hi,
When I use there functions like "WaitForMultipleObjects", where the reader thread must wait for some events like "data arrived" or sth. like that, it will block the thread until data is available.If you use non-blocking IO, you don't have to have any separate threads.
Meanwhile my writer thread could do some IO operations. Thats the reason why I need two threads.
Now my threads are children of the the serial-class and they use the pointer of parent to execute parent-functions.Swapping in what way?
When I switch parent to children and children to parent, every access to serial-class-object would run in the threads context and not in the main-app.
Yes, but it just allows blocking IO. overlapped IO is not implemented yet.Have you tried QExtSerialPort?




Reply With Quote
Bookmarks