6 #ifndef CBTHREADEDTASK_H 7 #define CBTHREADEDTASK_H virtual int Execute()=0
Override this function with the task's job Return value doesn't matter.
bool TestDestroy() const
Be sure to call this function often. If it returns true, quit your task quickly.
virtual ~cbThreadedTask()=0
cbThreadedTask dtor
void Abort()
This function is called to tell the task to abort (check cbThreadPool::AbortAllTasks) ...
cbThreadedTask()
cbThreadedTask ctor
This is what you have to use instead of wxThread to add tasks to the Thread Pool. ...
bool Aborted() const
Same as TestDestroy()