
10 Mar
2009
10 Mar
'09
9:46 a.m.
What is the best way to "emulate" synchronous behaviour with asio? The thread running this iteration should not block, but do other work (at the io_service?) until the requested results are received.
Probably, I misunderstood you, but aren't these 2 requirements contradicting? If you wish synchronous processing of messages, then each iteration in your loop should block and wait until the i/o is done.