flow_control#
[algorithms.parallel_pipeline.flow_control]
Enables the first filter in a composite filter to indicate when the end of input stream is reached.
Template function parallel_pipeline
passes a flow_control
object to the functor
of the first filter. When the functor reaches the end of its input stream, it should invoke fc.stop()
and return a dummy value that will not be passed to the next filter.
// Defined in header <oneapi/tbb/parallel_pipeline.h>
namespace oneapi {
namespace tbb {
class flow_control {
public:
void stop();
};
} // namespace tbb
} namespace oneapi
Member functions#
-
void stop()#
Indicates that first filter of the pipeline reaches the end of its output.
See also: