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

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...
 

Detailed Description

An implementation of Thread group.

Authors
Jakob Progsch, Václav Zeman

Constructor & Destructor Documentation

◆ ThreadGroup()

Utils::ThreadGroup::ThreadGroup ( ThreadPool pool)
inline

Build a ThreadGroup from a ThreadPool.

Parameters
poolReference ThreadPool

Member Function Documentation

◆ add_task()

Utils::ThreadGroup::add_task ( F &&  f,
Args &&...  args 
)
inline

Add a task to the thread.

Parameters
fAn object f
argsA list of arguments

◆ wait_all()

Utils::ThreadGroup::wait_all ( )
inline

Wait until all task results have a valid value.


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