基于并发提示配置执行上下文。
class config_from_concurrency_hint : public execution_context::service_maker
名称 |
描述 |
---|---|
config_from_concurrency_hint [构造函数] |
使用默认并发提示构造。 |
将具体服务添加到指定的执行上下文。 |
提供此配置服务是为了向后兼容现有的并发提示机制。
boost::asio::io_context my_io_context{ boost::asio::config_from_concurrency_hint{1}};
头文件: boost/asio/config.hpp
便捷头文件: boost/asio.hpp