Classes | |
| class | ThreadCommand |
| An action that can be run. More... | |
| class | ThreadReporter |
| Report progress and errors from a thread. More... | |
| class | MultiThreadReporter |
| Communicates between a processing thread and the main thread. More... | |
| class | AlgorithmThread |
| Base class for an algorithm thread. More... | |
| class | ProgressReporter |
| Base progress reporting class. More... | |
| class | ProgressObjectReporter |
| Use this derived class to report to a progress object. More... | |
| class | StatusBarReporter |
| Use this derived class to report to the status bar. More... | |
| class | MultiPhaseProgressReporter |
| Use this class to report progress from a multi-phase algorithm. More... | |
| class | MultiThreadedAlgorithm |
| An algorithm which distributes work between multiply threads. More... | |
Typedefs | |
| typedef EnumWrapper< ResultEnum > | Result |
Enumerations | |
| enum | ResultEnum { SUCCESS, FAILURE, ABORT } |
Functions | |
| unsigned int | getNumRequiredThreads (unsigned int dataSize) |
| typedef EnumWrapper<ResultEnum> mta::Result |
The EnumWrapper contains a given enum value and provides a isValid() method which returns true if the contained enum value is valid.
Please see How To Use EnumWrapper for more information. The wrapped enum values are mta::ResultEnum.
Definition at line 55 of file MultiThreadedAlgorithm.h.
| enum mta::ResultEnum |
Represents the result of algorithm execution.
Definition at line 50 of file MultiThreadedAlgorithm.h.
| unsigned int mta::getNumRequiredThreads | ( | unsigned int | dataSize | ) |
Calculate the required number of threads for the data to be processed.
Using this prevents some oddities involving empty worker threads.
| dataSize | Size of the data to be processed by multiple threads. |