Closed dencur closed 14 years ago
I've been successful doing this. I use numerous ports in a very threaded application.
Thanks for the reply hparra.
Could you include your code for reading and writing in a threaded application? I am just wondering what your using other than read. Thanks.
I had the exact same issue on OSX 10.6.4. Setting the read-timeout to -1 fixed it for me. In fact, setting it to any value would fix this problem.
Yes, depending on what you're doing setting read_timeout = -1 is the right behavior, but even if you do that, the thread I/O business I mentioned above still applies.
When trying to read from the serial port in a threaded application the read never responds. Removing the read, the write still functions as expected.
Example: