18#ifndef TRINITY_THREAD_POOL_H
19#define TRINITY_THREAD_POOL_H
21#include <boost/asio/post.hpp>
22#include <boost/asio/thread_pool.hpp>
30 explicit ThreadPool(std::size_t numThreads = std::thread::hardware_concurrency()) :
_impl(numThreads) { }
ThreadPool(std::size_t numThreads=std::thread::hardware_concurrency())
boost::asio::thread_pool _impl
decltype(auto) PostWork(T &&work)
decltype(auto) post(boost::asio::io_context &ioContext, T &&t)