【发布时间】:2016-07-01 04:18:16
【问题描述】:
asio::async_write(m_socket, asio::buffer(buf, bytes),
custom_alloc(m_strand.wrap(custom_alloc(_OnSend))));
此代码是否保证 async_write 中的所有异步操作处理程序(对 async_write_some 的调用)都是通过 strand 调用的? (或者它只是为了my_handler?)
【问题讨论】:
标签: c++ multithreading boost boost-asio