Boost logo

Boost :

From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2006-12-05 01:28:22

Hi Austin,

On Mon, 4 Dec 2006 14:03:08 +0000 (UTC), "Austin Bingham"
<abingham_at_[hidden]> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at