Does boost asio io_service guarantee execution of two parallel call chains?

若如初见. 提交于 2019-12-02 08:30:31

The io_service currently makes no guarantees about the invocation order of handlers. Thus, the io_service could choose to invoke only a single call chain. Currently, only a strand specifies guarantees.

With that said, I would not worry too much about the io_service currently not making the guarantee. As Asio is on track of becoming the standard networking library, one can imagine that handler scheduling will be defined throughout the specification process. In particular, the io_service's usage of the proposed executors and schedulers should provide specific guarantees as to the scheduling behavior and its options.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!