GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmThreadTask Class Referenceabstract

Interface for a task executed by a thread manager thread. More...

#include <gmThreadManager.h>

Public Member Functions

 GmThreadTask ()
 Default constructor. Task index MUST be set by a call to setTaskIndex()
 
virtual ~GmThreadTask ()
 Virtual destructor.
 
virtual GmThreadTaskResult run (const GmThread *thread)=0
 Virtual function used to execute the task. Gets as parameter the current thread in which the task is running.
 
virtual QString taskDescription ()
 A task description that can be used for debug purposes.
 
int taskIndex () const
 Returns the task index (the order in which the task was added to the thread manager)
 
void setTaskIndex (int index)
 Updates the task index inside the task manager for this task.
 

Private Attributes

int _taskIndex
 

Detailed Description

Interface for a task executed by a thread manager thread.


The documentation for this class was generated from the following file: