#include <MultiThreadedAlgorithm.h>

Public Member Functions | |
| virtual Result | reportProgress (int threadIndex, int percentDone)=0 |
| virtual Result | reportCompletion (int threadIndex)=0 |
| virtual Result | reportError (std::string errorText)=0 |
| virtual std::string | getErrorText () const =0 |
| virtual int | getProgress (int threadIndex) const =0 |
| virtual void | runInMainThread (ThreadCommand &command)=0 |
Definition at line 72 of file MultiThreadedAlgorithm.h.
| virtual Result mta::ThreadReporter::reportProgress | ( | int | threadIndex, | |
| int | percentDone | |||
| ) | [pure virtual] |
Send a progress report form a thread.
| threadIndex | ID number for the current thread. | |
| percentDone | How much of this thread's progress has completed. |
Implemented in mta::MultiThreadReporter.
| virtual Result mta::ThreadReporter::reportCompletion | ( | int | threadIndex | ) | [pure virtual] |
Indicate that a thread has completed execution.
| threadIndex | ID number for the current thread. |
Implemented in mta::MultiThreadReporter.
| virtual Result mta::ThreadReporter::reportError | ( | std::string | errorText | ) | [pure virtual] |
Report an error.
| errorText | Description of the error. |
Implemented in mta::MultiThreadReporter.
| virtual std::string mta::ThreadReporter::getErrorText | ( | ) | const [pure virtual] |
Access the most recent error.
Implemented in mta::MultiThreadReporter.
| virtual int mta::ThreadReporter::getProgress | ( | int | threadIndex | ) | const [pure virtual] |
Access the progress of a thread.
| threadIndex | The ID of the thread to check. |
Implemented in mta::MultiThreadReporter.
| virtual void mta::ThreadReporter::runInMainThread | ( | ThreadCommand & | command | ) | [pure virtual] |
Perform an action in the main thread.
| command | The action to run in the main thread. |
Implemented in mta::MultiThreadReporter.