Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

class thread_pooler

5cript edited this page Apr 25, 2021 · 4 revisions

class thread_pooler

class thread_pooler
  : public attender::async_model

Summary

Members Descriptions
public thread_pooler(asio::io_service * context,std::size_t thread_count,std::function< void()> initAction,std::function< void(std::exception const &)> exceptAction)
public ~thread_pooler()
protected virtual void setup_impl() Setups the async_model.
protected virtual void teardown_impl() Tears down the internals.

Members


public thread_pooler(asio::io_service * context,std::size_t thread_count,std::function< void()> initAction,std::function< void(std::exception const &)> exceptAction)


public ~thread_pooler()


protected virtual void setup_impl()

Setups the async_model.

Must be overridden by the deriving class. The subclass can decide to call this by default on construction. There may be instances however, where setup on construction is undesirable, or impossible.


protected virtual void teardown_impl()

Tears down the internals.

Clone this wiki locally