![]() |
GemaCoreLib
The GeMA Core library
|
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. | |
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 |
Interface for a task executed by a thread manager thread.