#include <SerialParallel.hpp>
Public Member Functions | |
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 |
Private Member Functions | |
SerialParallel (int threadCount) | |
Friends | |
class | ParallelFactory |
Additional Inherited Members | |
![]() | |
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 |