Public Member Functions | |
ThreadPool (size_t) | |
template<class F , class... Args> | |
auto | enqueue (F &&f, Args &&...args) -> std::future< typename std::result_of< F(Args...)>::type > |
auto ai::ThreadPool::enqueue | ( | F && | f, |
Args &&... | args | ||
) | -> std::future<typename std::result_of<F(Args...)>::type> |
Enqueue functors or lambdas into the thread pool