![]() |
Home | Libraries | People | FAQ | More |
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