USB Communication, Read Message with Multithreading
I'm having an issue playing something with USB communication. I'm using HidLibrary library, which works beautifully. The only thing that doesn't work is timeout (I already looked on web for a solution but this is a library bug). So, when I send a message and no response comes to PC, my loop runs forever. I am just waiting for bool is message is readed with success or not. If a message does not come, what then? How I can solve that? With multithreading (WaitHandle class) or are there any alternatives?
链接地址: http://www.djcxy.com/p/48290.html上一篇: 使用命名管道的C ++ / C#通信
下一篇: USB通信,多线程读取消息