
5 Dec
2006
5 Dec
'06
6:28 a.m.
Hi Austin, On Mon, 4 Dec 2006 14:03:08 +0000 (UTC), "Austin Bingham" <abingham@arlut.utexas.edu> said:
Is there any guarantee about the order of the processing of handlers within a given strand? If, from one thread, I post several handlers in the same strand to the io_service, will those handlers necessarily be run in the order of the post calls?
Yes, that is the intent (although it isn't currently specified in the documentation). Note that the guarantee only applies to strand::post(). If you use strand::dispatch() it may execute the handler immediately and break the ordering. Cheers, Chris