class thread_pooler - 5cript/attender GitHub Wiki

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.

⚠️ **GitHub.com Fallback** ⚠️