Is there a guarantee that the events posted using boost::asio::post()
are called in the order of submission or can they be called in any
order? Note that I have multiple threads running io_context.run().
The asio documentation provides no guarantee of execution order at all, other than the execution of a dispatched function happens before the dispatch call returns.
From memory, previous versions of ASIO used to provide some guarantees around this, but since the current documentation does not mention it, one must assume that it's unknowable and code accordingly.
Thanks,
F
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users