Darwin Neuroevolution Framework
|
Parallel Processing primitives. More...
Classes | |
class | Controller |
An optional thread pool controller, which can be used to pause/resume/cancel the queued work items. More... | |
class | ThreadPool |
A basic thread pool (managing a fixed number of threads) More... | |
struct | WorkBatch |
A collection of work items to be processed in a fork/join fashion. More... | |
class | WorkItem |
Generic work item interface. More... | |
Functions | |
template<class T , class Body > | |
void | for_each (T &array, const Body &loop_body) |
Iterates over an array, with support for parallel execution. More... | |
Parallel Processing primitives.
void pp::for_each | ( | T & | array, |
const Body & | loop_body | ||
) |
Iterates over an array, with support for parallel execution.
pp::for_each() offers an easy way to parallelize the processing of the elements in an array (the array must support size()
and operator[]
):