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
You've currently chosen the 1.89.0 version. If a newer release comes out, you will continue to view the 1.89.0 version, not the new latest release.
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