#include "tbb/pipeline.h"
class flow_control;
Template function parallel_pipeline passes a flow_control object fc to the input functor of a filter_t. When the input functor reaches the end of its input, it should invoke fc.stop() and return a dummy value.
namespace tbb { class flow_control { public: void stop(); }; }