Re: close on USB serial port hangs (read pending) on Snow Leopard
Re: close on USB serial port hangs (read pending) on Snow Leopard
- Subject: Re: close on USB serial port hangs (read pending) on Snow Leopard
- From: Fritz Anderson <email@hidden>
- Date: Thu, 18 Feb 2010 21:27:41 -0600
On 18 Feb 2010, at 8:39 PM, Keun-young Park wrote:
> Maybe closing from different thread is causing problem. You can use select and use other mechanism like socket to send message from main thread to the read thread to send close request. When close request comes, the read thread can close the serial port and exit.
I'm willing to believe this. But a question: If the read thread is blocked on the read(), how does it receive the close request? (Or is this another possible use for select()?) It's late where I am, so I'm a bit slow.
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden