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 version of Boost is under active development. You are currently in the develop branch. The current version is 1.90.0.
Configures an execution context based on a concurrency hint.
class config_from_concurrency_hint : public execution_context::service_maker
|
Name |
Description |
|---|---|
|
config_from_concurrency_hint [constructor] |
Construct with a default concurrency hint. |
|
Add a concrete service to the specified execution context. |
This configuration service is provided for backwards compatibility with the existing concurrency hint mechanism.
boost::asio::io_context my_io_context{ boost::asio::config_from_concurrency_hint{1}};
Header: boost/asio/config.hpp
Convenience header: boost/asio.hpp