class thread_pooler - 5cript/attender GitHub Wiki
class thread_pooler
: public attender::async_model
| 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. |
public thread_pooler(asio::io_service * context,std::size_t thread_count,std::function< void()> initAction,std::function< void(std::exception const &)> exceptAction)
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.
Tears down the internals.