I'm currently trying to get my head around how to implement the dependencies of tasks onto other tasks in such a system.
For priority of tasks my task object stores a priority value -> priority_queue gives me the task with the highest priority.
But the problem is for defining dependencies like e.g. a render task having dependency on a physics task to finish its work.
Can someone tell me / give me an example on how this is done right ?
Another small question...do I take tasks as they come or do I first fill the queue with tasks for e.g. the entire frame and then schedule it ?
I'm currently looking at Intel Building Blocks. Is it worth using ?