Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
flow_graph_abstractions.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2005-2020 Intel Corporation
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16 
17 #ifndef __TBB_flow_graph_abstractions_H
18 #define __TBB_flow_graph_abstractions_H
19 
20 namespace tbb {
21 namespace flow {
22 namespace interface11 {
23 
25 class graph_proxy {
26 public:
28  virtual void reserve_wait() = 0;
29 
31  virtual void release_wait() = 0;
32 
33  virtual ~graph_proxy() {}
34 };
35 
36 template <typename Input>
37 class receiver_gateway : public graph_proxy {
38 public:
40  typedef Input input_type;
41 
43  virtual bool try_put(const input_type&) = 0;
44 };
45 
46 } //interfaceX
47 
50 
51 } //flow
52 } //tbb
53 #endif
virtual void release_wait()=0
Inform a graph that a previous call to reserve_wait is no longer in effect.
Input input_type
Type of inputing data into FG.
Pure virtual template classes that define interfaces for async communication.
virtual void reserve_wait()=0
Inform a graph that messages may come from outside, to prevent premature graph completion.
The graph class.
virtual bool try_put(const input_type &)=0
Submit signal from an asynchronous activity to FG.

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.