SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Public Member Functions | List of all members
ai::ThreadPool Class Referencefinal

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 >
 

Member Function Documentation

template<class F , class... Args>
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


The documentation for this class was generated from the following file: