I'm new to Threading Building Blocks and need a design pattern to parallelize an existing divide and conquer loop. Superficially, it works like this:
foreach element in container if element can be pruned continue else if element is divisible divide element into 4 smaller elements else conquer element
So far, no problem for TBB. Just use a parallel_for over a std::vector and a tbb::parallel_invoke (or something) for the subdivision.