27 Jul
2009
27 Jul
'09
4:40 p.m.
Igor, that doesn't seem correct to me, from what I can tell (by reading the docs, and using it) is that io_service::run() will not return immediately if there is no work.
http://eckhart.stderr.org/doc/libasio-doc/reference/a00032.html#c84bed0d1dd0...
"The run() function blocks until all work has finished and there are no more handlers to be dispatched, or until the io_service has been stopped."
I don't quite understand how you came to your conclusion from the
above quotation, as it states exactly the opposite.
But anyway, try and run the following code:
#include