2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-02 20:32:08 +00:00
Christopher Kohlhoff dc8dc3e192 Add execution_context::service_maker abstract base class.
A service_maker is an object that is passed to an execution context's
constructor, and allows services to be added at context construction
time. Additional constructor overloads have been added to io_context and
thread_pool that accept a service_maker. For example:

  class my_service_maker : public execution_context::service_maker
  {
  public:
    void make(execution_context& ctx) override
    {
      make_service<my_service>(ctx);
    }
  };

  io_context ctx{my_service_maker{}};
2024-10-30 23:00:28 +11:00
2024-03-05 07:51:17 +11:00
2006-06-14 22:26:36 +00:00
Description
Mirrored via gitea-mirror
24 MiB
Languages
C++ 99.6%
HTML 0.2%
Perl 0.2%