30 Oct
2008
30 Oct
'08
8:28 p.m.
I was expecting printHello to be called first, then print1, then print2, then print3 and print4, because that is the order the events were added to the io_service service.
I expect I have missed some of, or misunderstood the documentation, but a few hints as to what is happening will be appreciated.
I do not see anything in the documentation that could make you think so -- could you please quote the documentation excerpt you refer to? I think the order of handlers invocation in your case is implementation-defined and it's not a good idea to rely on it.