|
Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Forwards messages in arbitrary order. More...
#include <flow_graph.h>
Classes | |
| class | buffer_operation |
Public Member Functions | |
| buffer_node (graph &g) | |
| Constructor. More... | |
| buffer_node (const buffer_node &src) | |
| Copy constructor. More... | |
| bool | register_successor (successor_type &r) __TBB_override |
| Adds a new successor. More... | |
| bool | remove_successor (successor_type &r) __TBB_override |
| Removes a successor. More... | |
| bool | try_get (T &v) __TBB_override |
| Request an item from the buffer_node. More... | |
| bool | try_reserve (T &v) __TBB_override |
| Reserves an item. More... | |
| bool | try_release () __TBB_override |
| Release a reserved item. More... | |
| bool | try_consume () __TBB_override |
| Consumes a reserved item. More... | |
Public Member Functions inherited from tbb::flow::interface10::graph_node | |
| graph_node (graph &g) | |
| virtual | ~graph_node () |
Public Member Functions inherited from tbb::flow::interface10::internal::reservable_item_buffer< T, A > | |
| reservable_item_buffer () | |
| void | reset () |
Public Member Functions inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| item_buffer () | |
| Constructor. More... | |
| ~item_buffer () | |
| void | reset () |
Public Member Functions inherited from tbb::flow::interface10::receiver< T > | |
| bool | try_put (const typename internal::async_helpers< T >::filtered_type &t) |
| Put an item to the receiver. More... | |
| bool | try_put (const typename internal::async_helpers< T >::async_type &t) |
Public Member Functions inherited from tbb::flow::interface10::internal::untyped_receiver | |
| virtual | ~untyped_receiver () |
| Destructor. More... | |
| template<typename X > | |
| bool | try_put (const X &t) |
| Put an item to the receiver. More... | |
| virtual bool | register_predecessor (predecessor_type &) |
| Add a predecessor to the node. More... | |
| virtual bool | remove_predecessor (predecessor_type &) |
| Remove a predecessor from the node. More... | |
Public Member Functions inherited from tbb::flow::interface10::internal::untyped_sender | |
| virtual | ~untyped_sender () |
Protected Types | |
| enum | op_type { reg_succ, rem_succ, req_item, res_item, rel_res, con_res, put_item, try_fwd_task } |
| typedef size_t | size_type |
| typedef internal::aggregating_functor< class_type, buffer_operation > | handler_type |
Protected Types inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| typedef size_t | size_type |
| typedef aligned_pair< item_type, buffer_item_state >::type | buffer_item_type |
| typedef A::template rebind< buffer_item_type >::other | allocator_type |
Protected Attributes | |
| internal::round_robin_cache< T, null_rw_mutex > | my_successors |
| bool | forwarder_busy |
| internal::aggregator< handler_type, buffer_operation > | my_aggregator |
Protected Attributes inherited from tbb::flow::interface10::graph_node | |
| graph & | my_graph |
| graph_node * | next |
| graph_node * | prev |
Protected Attributes inherited from tbb::flow::interface10::internal::reservable_item_buffer< T, A > | |
| bool | my_reserved |
Protected Attributes inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| buffer_item_type * | my_array |
| size_type | my_array_size |
| size_type | my_head |
| size_type | my_tail |
Private Member Functions | |
| void | order () |
| bool | is_item_valid () |
| void | try_put_and_add_task (task *&last_task) |
Friends | |
| class | internal::forward_task_bypass< buffer_node< T, A > > |
| class | internal::aggregating_functor< class_type, buffer_operation > |
| template<typename R , typename B > | |
| class | run_and_put_task |
| template<typename X , typename Y > | |
| class | internal::broadcast_cache |
| template<typename X , typename Y > | |
| class | internal::round_robin_cache |
Additional Inherited Members | |
Static Protected Attributes inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| static const size_type | initial_buffer_size = 4 |
Forwards messages in arbitrary order.
Definition at line 1543 of file flow_graph.h.
| typedef buffer_node<T, A> tbb::flow::interface10::buffer_node< T, A >::class_type |
Definition at line 1549 of file flow_graph.h.
|
protected |
Definition at line 1604 of file flow_graph.h.
| typedef T tbb::flow::interface10::buffer_node< T, A >::input_type |
Definition at line 1545 of file flow_graph.h.
| typedef T tbb::flow::interface10::buffer_node< T, A >::output_type |
Definition at line 1546 of file flow_graph.h.
| typedef receiver<input_type>::predecessor_type tbb::flow::interface10::buffer_node< T, A >::predecessor_type |
Definition at line 1547 of file flow_graph.h.
|
protected |
Definition at line 1555 of file flow_graph.h.
| typedef sender<output_type>::successor_type tbb::flow::interface10::buffer_node< T, A >::successor_type |
Definition at line 1548 of file flow_graph.h.
|
protected |
| Enumerator | |
|---|---|
| reg_succ | |
| rem_succ | |
| req_item | |
| res_item | |
| rel_res | |
| con_res | |
| put_item | |
| try_fwd_task | |
Definition at line 1564 of file flow_graph.h.
|
inlineexplicit |
Constructor.
Definition at line 1839 of file flow_graph.h.
References tbb::internal::fgt_node(), tbb::flow::interface10::graph_node::my_graph, and tbb::flow::interface10::internal::successor_cache< T, M >::set_owner().
|
inline |
Copy constructor.
Definition at line 1848 of file flow_graph.h.
References __TBB_override, tbb::internal::fgt_node(), tbb::flow::interface10::graph_node::my_graph, and tbb::flow::interface10::internal::successor_cache< T, M >::set_owner().
|
inlineprotected |
Definition at line 1666 of file flow_graph.h.
|
inlineprotectedvirtual |
This is executed by an enqueued task, the "forwarder".
Definition at line 1676 of file flow_graph.h.
References tbb::flow::interface10::internal::WAIT.
|
inlineprotected |
Definition at line 1662 of file flow_graph.h.
|
inlineprotectedvirtual |
Implements tbb::flow::interface10::internal::untyped_receiver.
Definition at line 2008 of file flow_graph.h.
References tbb::flow::interface10::graph_node::my_graph.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >.
Definition at line 1608 of file flow_graph.h.
|
inlineprotected |
Definition at line 1613 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1827 of file flow_graph.h.
|
inlineprotectedvirtual |
Tries to forward valid items to successors.
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1774 of file flow_graph.h.
|
inlineprotected |
Definition at line 1779 of file flow_graph.h.
References __TBB_ASSERT, tbb::internal::__TBB_store_with_release(), and tbb::flow::interface10::internal::FAILED.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1809 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::sequencer_node< T, A >.
Definition at line 1803 of file flow_graph.h.
|
inlineprotectedvirtual |
Register successor.
Definition at line 1693 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >.
Definition at line 1832 of file flow_graph.h.
References tbb::internal::__TBB_store_with_release(), and tbb::flow::interface10::internal::SUCCEEDED.
|
inlineprotectedvirtual |
Remove successor.
Definition at line 1699 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1818 of file flow_graph.h.
|
inlineprivate |
Definition at line 1758 of file flow_graph.h.
|
inlineprivate |
Definition at line 1756 of file flow_graph.h.
|
inlinevirtual |
Adds a new successor.
Adds successor r to the list of successors; may forward tasks.
Implements tbb::flow::interface10::internal::untyped_sender.
Definition at line 1869 of file flow_graph.h.
|
inlinevirtual |
Removes a successor.
Removes successor r from the list of successors. It also calls r.remove_predecessor(*this) to remove this node as a predecessor.
Implements tbb::flow::interface10::internal::untyped_sender.
Definition at line 1931 of file flow_graph.h.
|
inlineprotectedvirtual |
Implements tbb::flow::interface10::graph_node.
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 2023 of file flow_graph.h.
References tbb::flow::interface10::internal::successor_cache< T, M >::clear(), and tbb::flow::interface10::internal::reservable_item_buffer< T, A >::reset().
|
inlineprotectedvirtual |
put receiver back in initial state
Implements tbb::flow::interface10::internal::untyped_receiver.
Definition at line 2012 of file flow_graph.h.
References __TBB_override.
|
inlinevirtual |
Consumes a reserved item.
true = item is removed from sender and reservation removed
Reimplemented from tbb::flow::interface10::internal::untyped_sender.
Definition at line 1976 of file flow_graph.h.
|
inlinevirtual |
Request an item from the buffer_node.
true = v contains the returned item
false = no item has been returned
Reimplemented from tbb::flow::interface10::sender< T >.
Definition at line 1946 of file flow_graph.h.
|
inlineprivate |
Definition at line 1762 of file flow_graph.h.
|
inlineprotectedvirtual |
receive an item, return a task *if possible
Implements tbb::flow::interface10::receiver< T >.
Definition at line 1989 of file flow_graph.h.
|
inlinevirtual |
Release a reserved item.
true = item has been released and so remains in sender
Reimplemented from tbb::flow::interface10::internal::untyped_sender.
Definition at line 1967 of file flow_graph.h.
References void.
|
inlinevirtual |
Reserves an item.
false = no item can be reserved
true = an item is reserved
Reimplemented from tbb::flow::interface10::sender< T >.
Definition at line 1957 of file flow_graph.h.
|
friend |
Definition at line 1605 of file flow_graph.h.
|
friend |
Definition at line 1986 of file flow_graph.h.
|
friend |
Definition at line 1562 of file flow_graph.h.
|
friend |
Definition at line 1987 of file flow_graph.h.
|
friend |
Definition at line 1985 of file flow_graph.h.
|
protected |
Definition at line 1603 of file flow_graph.h.
|
protected |
Definition at line 1606 of file flow_graph.h.
|
protected |
Definition at line 1556 of file flow_graph.h.