9 #include <ThirdPartyWarningsDisable.h>
13 #include <ThirdPartyWarningsRestore.h>
32 ThreadPool(std::shared_ptr<Context> context,
const unsigned short num_threads);
42 std::shared_ptr<Context> context;
43 std::shared_ptr<Context::work> work;
45 std::vector<std::thread> pool;
#define ASYNCHRONOUSIO_EXPORT
A thread pool executing an asio::Context's run method with a bunch of threads.
ThreadPool & operator=(const ThreadPool &)=delete
ThreadPool(const ThreadPool &)=delete
ThreadPool(std::shared_ptr< Context > context, const unsigned short num_threads)