Hi,
I'd like to use this project is a threaded application and receive events to unblock thread waits (e.g. data received on a blocking read() ) rather than polling. Is it possible to use QtUsb in this way?
I compiled the project with Qt6 and qmake and it is working as expected with the examples provided. I'd now like to run two threads (one send/one receive) and share the QHidDevice pointer with mutex protection.
Ideally the read() would run in blocking mode with the ability to process a USB receive event to unblock it. It seems that it can only run with a timeout at the moment to allow any write() call to proceed, but I have just started experimenting.
Thank you for any details you can provide
Hi,
I'd like to use this project is a threaded application and receive events to unblock thread waits (e.g. data received on a blocking read() ) rather than polling. Is it possible to use QtUsb in this way?
I compiled the project with Qt6 and qmake and it is working as expected with the examples provided. I'd now like to run two threads (one send/one receive) and share the QHidDevice pointer with mutex protection.
Ideally the read() would run in blocking mode with the ability to process a USB receive event to unblock it. It seems that it can only run with a timeout at the moment to allow any write() call to proceed, but I have just started experimenting.
Thank you for any details you can provide