Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 75886a53a4.
PrevUpHomeNext

config_from_concurrency_hint

Configures an execution context based on a concurrency hint.

class config_from_concurrency_hint :
  public execution_context::service_maker
Member Functions

Name

Description

config_from_concurrency_hint [constructor]

Construct with a default concurrency hint.

Construct with a specified concurrency hint.

make

Add a concrete service to the specified execution context.

This configuration service is provided for backwards compatibility with the existing concurrency hint mechanism.

Example
boost::asio::io_context my_io_context{
   boost::asio::config_from_concurrency_hint{1}};
Requirements

Header: boost/asio/config.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext