![]() |
IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
|
An implementation of Thread group. More...
#include <ThreadPool.h>
Public Member Functions | |
ThreadGroup (ThreadPool &pool) | |
Build a ThreadGroup from a ThreadPool. More... | |
void | add_task (F &&f, Args &&... args) |
Add a task to the thread. More... | |
void | wait_all () |
Wait until all task results have a valid value. More... | |
Private Attributes | |
ThreadPool & | m_pool |
std::vector< std::future< void > > | m_taskresults |
An implementation of Thread group.
|
inline |
Build a ThreadGroup from a ThreadPool.
pool | Reference ThreadPool |
|
inline |
Add a task to the thread.
f | An object f |
args | A list of arguments |
|
inline |
Wait until all task results have a valid value.
|
private |
ThreadPool corresponding to this ThreadGroup
|
private |
A list of task results