When working with tasks, for example with this:
class MyTask: public tbb::task {
private:
int x;
private:
void DoSomething(...){...} // Used only inside execute
void DoMore(...){...} // Used only inside execute
public:
MyTasks(...){...}
tbb::task* execute(){...}
};
Once the task is running, is it possible to execute concurrently
DoSomething() or DoMore() by other threads or those methods can only be invoked by the
thread that started the execution of the task?.
I read that TBB allows job stealing, but what it steals? Does it
steal a piece of data, compute it and return the result to the main
thread or could it be possible for the stealing to execute the private
methods?
Sorry If my question isn't clear!
Thanks.



