Re: close on USB serial port hangs (read pending) on Snow Leopard
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Fritz Anderson