| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/mt/taskmanager.h>

Public Member Functions | |
| const RESULT_TYPE & | result () const |
| Returns the result of the computation task. | |
Protected Member Functions | |
| Task (SO< CallbackR< RESULT_TYPE > > taskCallback, double priority, double cancelIfNotStartedWithinSeconds) | |
| The protected constructor takes a VRS callback as input parameter. | |
| Task (const RESULT_TYPE &result) | |
| The protected constructor takes an already calculated result. | |
| virtual void | work () |
| Implement the work() method. | |
Friends | |
| class | TaskManager |
| VRS::MT::Task< RESULT_TYPE >::Task | ( | SO< CallbackR< RESULT_TYPE > > | taskCallback, | |
| double | priority, | |||
| double | cancelIfNotStartedWithinSeconds | |||
| ) | [inline, protected] |
The protected constructor takes a VRS callback as input parameter.
| VRS::MT::Task< RESULT_TYPE >::Task | ( | const RESULT_TYPE & | result | ) | [inline, protected] |
The protected constructor takes an already calculated result.
| const RESULT_TYPE& VRS::MT::Task< RESULT_TYPE >::result | ( | ) | const [inline] |
Returns the result of the computation task.
If the task has not been finished, wait() is called before. If the result is not available (because the task has been canceled or an exception occured during task execution) an exception will be thrown.
| virtual void VRS::MT::Task< RESULT_TYPE >::work | ( | ) | [inline, protected, virtual] |
friend class TaskManager [friend] |
Reimplemented from VRS::MT::TaskBase.