in my app, I want to parallelize it with pipeline and parallel for. Each stage characters serial(There are dependence between different items of the same stage), and in each stage, I want to process the data in parallel, now, I do it with parallel_for. But it seems does not work.
My questions are: TBB does not support task parallelism in producer-consumer patter. So, how should I do it?
stage1 // serial
stage2 // serial
stage3 // serial