Boost C++ 库

...世界上备受推崇、设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

config_from_concurrency_hint - Boost C++ 函数库
PrevUpHomeNext

基于并发提示配置执行上下文。

class config_from_concurrency_hint :
  public execution_context::service_maker
成员函数

名称

描述

config_from_concurrency_hint [构造函数]

使用默认并发提示构造。

使用指定的并发提示进行构造。

make

将具体服务添加到指定的执行上下文。

提供此配置服务是为了向后兼容现有的并发提示机制。

示例
boost::asio::io_context my_io_context{
   boost::asio::config_from_concurrency_hint{1}};
要求

头文件: boost/asio/config.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext