#include <SerialParallel.hpp>
Public Member Functions | |
void | call (size_t maxIndex, std::function< void(size_t firstIndex, size_t numIndices)> target) override |
Public Member Functions inherited from Parallel | |
virtual | ~Parallel () |
virtual void | call (size_t maxIndex, std::function< void(size_t firstIndex, size_t numIndices)> target)=0 |
Private Member Functions | |
SerialParallel (int threadCount) | |
Friends | |
class | ParallelFactory |
Additional Inherited Members | |
Protected Member Functions inherited from Parallel | |
Parallel () | |
This class implements the Parallel base class interface using a single execution threads in a single process. In other words, all tasks are serialized in the thread invoking the call() function. Because of the simplicity of the "parallelization" scheme, overhead is minimal. Also, any exceptions thrown by the target function are simply passed through.
|
explicitprivate |
Constructs a SerialParallel instance. The specified number of execution threads is ignored. The constructor is private; use the ParallelFactory::parallel() function instead.
|
overridevirtual |