
27 Aug
2009
27 Aug
'09
8:01 p.m.
Hello, I'm currently using a serial_port object to call async_read_some(). This results in io_service::run() blocking until at least 1 byte or more can be read from the serial port. If nothing is ever sent, then I can not safely exit the thread in which io_service::run() is executing in. In other words, a call to join() on that thread hangs indefinitely until data is received. My completion callback is not executed at all until data arrives for reading. How can I force run() to return when I interrupt my thread? --------- Robert Dailey