16 Feb
2010
16 Feb
'10
11:32 a.m.
All works but, if when I create an object after the thread is ended, the io_service returns immediately..
I couldn't understand from your description and example what problem you're talking about, but if you mean that you try to call io_service::run() again, after the previous call to io_service::run() exited -- then you have to interleave these calls with io_service::reset(). http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/reference/io_servic...