#include <MultiThreadParallel.hpp>
|
| | ~MultiThreadParallel () |
| |
| void | call (size_t maxIndex, std::function< void(size_t firstIndex, size_t numIndices)> target) override |
| |
| virtual | ~Parallel () |
| |
| virtual void | call (size_t maxIndex, std::function< void(size_t firstIndex, size_t numIndices)> target)=0 |
| |
|
|
ChunkMaker | _chunkMaker |
| |
|
std::function< void(size_t, size_t)> | _target |
| |
This class implements the Parallel base class interface using multiple execution threads in a single process. It uses the facilities offered by the MultiParallel base class.
◆ MultiThreadParallel()
| MultiThreadParallel::MultiThreadParallel |
( |
int |
threadCount | ) |
|
|
explicitprivate |
◆ ~MultiThreadParallel()
| MultiThreadParallel::~MultiThreadParallel |
( |
| ) |
|
Destructs the instance and its parallel threads.
◆ call()
| void MultiThreadParallel::call |
( |
size_t |
maxIndex, |
|
|
std::function< void(size_t firstIndex, size_t numIndices)> |
target |
|
) |
| |
|
overridevirtual |
This function implements the call() interface described in the Parallel base class for the parallelization scheme offered by this subclass.
Implements Parallel.
◆ doSomeWork()
| bool MultiThreadParallel::doSomeWork |
( |
| ) |
|
|
overrideprotectedvirtual |
The function to do the actual work, one chunk at a time.
Implements MultiParallel.
The documentation for this class was generated from the following file: