![]() |
OpendTect-6_4
6.4
|
The abstraction of something that can be done. It can be an ordinary CallBack, a static function (must return bool) or a TaskFunction on a CallBackerinheriting class, or a Task. The three examples are shown below. More...
Public Member Functions | |
| Work () | |
| Work (const CallBack &) | |
| Work (CallBacker *o, TaskFunction f) | |
| Work (StaticTaskFunction f) | |
| Work (Task &t, bool takeover) | |
| bool | operator== (const Work &) const |
| bool | isOK () const |
| bool | doRun () |
Protected Member Functions | |
| void | destroy () |
Protected Attributes | |
| CallBacker * | obj_ |
| CallBackFunction | cbf_ |
| TaskFunction | tf_ |
| StaticTaskFunction | stf_ |
| bool | takeover_ |
Friends | |
| class | WorkThread |
| class | WorkManager |
The abstraction of something that can be done. It can be an ordinary CallBack, a static function (must return bool) or a TaskFunction on a CallBackerinheriting class, or a Task. The three examples are shown below.
Calls to normalCallBack and task functions can be invoked as:
or
or
You can also add Tasks, with the option that they may be deleted when the work is done, or if there is an error.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
inline |
|
inline |
| bool Threads::Work::operator== | ( | const Work & | ) | const |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019