#include <mitkThreadMasterWorker.h>
Inherits mitkObject.
Inheritance diagram for mitkThreadWorker:
Protected Member Functions | |
virtual int | TasksPerTime () |
virtual void | SendTaskBag (void *taskBag) |
virtual void | DoTask (int taskID, int taskNumber)=0 |
virtual mitkThreadWorker * | Duplicate ()=0 |
Friends | |
class | mitkThreadMaster |
mitkThreadWorker encapsules a worker of the Master/Worker model. A worker can be driven by a thread of the master to fulfil the scheduled tasks. The class can be subclassed as a specific implementation of some parallel part of an algorithm.
|
Do the scheduled task, called automatically by master
|
|
Should be implemented. Used by master to duplicate workers from a single "sample worker". |
|
Called by the master when a group of tasks are sent to be done
|
|
Overwrite this function when more than one task will be done in do task function. The master use this function to decide the progress.
|