IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
Utils::ThreadPool Class Reference

#include <ThreadPool.h>

Public Member Functions

 ThreadPool ()=default
 
 ~ThreadPool ()
 
void initialize (std::size_t)
 
void add_thread (std::function< void()> initializer)
 
template<class F , class... Args>
auto add_task (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type >
 

Constructor & Destructor Documentation

◆ ThreadPool()

Utils::ThreadPool::ThreadPool ( )
default

◆ ~ThreadPool()

Utils::ThreadPool::~ThreadPool ( )
inline

Member Function Documentation

◆ add_task()

template<class F , class... Args>
auto Utils::ThreadPool::add_task ( F &&  f,
Args &&...  args 
) -> std::future<typename std::result_of<F(Args...)>::type>

◆ add_thread()

void Utils::ThreadPool::add_thread ( std::function< void()>  initializer)
inline

◆ initialize()

void Utils::ThreadPool::initialize ( std::size_t  )
inline

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