flow_graph_abstractions.h
Go to the documentation of this file.
/*
Copyright (c) 2005-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef __TBB_flow_graph_abstractions_H
#define __TBB_flow_graph_abstractions_H
namespace tbb {
namespace flow {
namespace interface11 {
class graph_proxy {
public:
virtual void reserve_wait() = 0;
virtual void release_wait() = 0;
virtual ~graph_proxy() {}
};
template <typename Input>
class receiver_gateway : public graph_proxy {
public:
typedef Input input_type;
virtual bool try_put(const input_type&) = 0;
};
} //interfaceX
using interface11::graph_proxy;
using interface11::receiver_gateway;
} //flow
} //tbb
#endif
tbb::flow::interface11::graph_proxy::release_wait
virtual void release_wait()=0
Inform a graph that a previous call to reserve_wait is no longer in effect.
tbb
The graph class.
Definition: serial/tbb/parallel_for.h:46
tbb::flow::interface11::graph_proxy
Pure virtual template classes that define interfaces for async communication.
Definition: flow_graph_abstractions.h:25
tbb::flow::interface11::receiver_gateway::input_type
Input input_type
Type of inputing data into FG.
Definition: flow_graph_abstractions.h:40
tbb::flow::interface11::receiver_gateway::try_put
virtual bool try_put(const input_type &)=0
Submit signal from an asynchronous activity to FG.
tbb::flow::interface11::receiver_gateway
Definition: flow_graph_abstractions.h:37
tbb::flow::interface11::graph_proxy::reserve_wait
virtual void reserve_wait()=0
Inform a graph that messages may come from outside, to prevent premature graph completion.
tbb::flow::interface11::graph_proxy::~graph_proxy
virtual ~graph_proxy()
Definition: flow_graph_abstractions.h:33

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.