You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: