Hi Essentia,
In general any tasks that are allowed to execute in parallel you should expect that they could.
Looking at the example you are explaining I'm having trouble understanding how it could work, even without the task portions. Who is calling the functions TaskA and TaskC? If you call the function TaskC before TaskA then you are going to be accessing a task that hasn't been initialized yet, this will cause problems. Fundamentally you can't hook up a continuation to a task before it is created.
Is it possible to maybe do something like hook up the continuation to m_TaskB inside your TaskB() function?
Steve
In general any tasks that are allowed to execute in parallel you should expect that they could.
Looking at the example you are explaining I'm having trouble understanding how it could work, even without the task portions. Who is calling the functions TaskA and TaskC? If you call the function TaskC before TaskA then you are going to be accessing a task that hasn't been initialized yet, this will cause problems. Fundamentally you can't hook up a continuation to a task before it is created.
Is it possible to maybe do something like hook up the continuation to m_TaskB inside your TaskB() function?
Steve