# flow_control Class

## Summary

Enables the first filter in a composite filter to indicate when the end of input has been reached.

## Header

    #include "tbb/pipeline.h"

## Syntax

    class flow_control;

## Description

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.

## Members

    namespace tbb {
        class flow_control {
        public:
            void stop();
        };
    }

Parent topic: parallel_pipeline Function