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.
{
bool taskFunction();
static bool staticFunc();
};
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Calls to normalCallBack and task functions can be invoked as:
Work(mCB(
this,MyClass,normalCallBack) ) );
static Threads::WorkManager & twm()
void addWork(const Work &, CallBack *finished=0, int queueid=cDefaultQueueID(), bool putfirstinline=false, bool discardduplicates=false, bool forcedifferentthread=false)
Work()
Definition: threadwork.h:227
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.
<>