Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Namespaces | |
graph_policy_namespace | |
Typedefs | |
typedef tbb::internal::uint64_t | tag_value |
typedef tbb::concurrent_priority_queue< graph_task *, graph_task_comparator > | graph_task_priority_queue_t |
Enumerations | |
enum | op_stat { WAIT = 0, SUCCEEDED, FAILED } |
Functions | |
template<typename Body > | |
void | check_input_node_body_input_type_impl (Body) |
template<typename Body > | |
void | check_input_node_body_input_type (Body) |
template<typename ReturnType , typename T > | |
void | check_input_node_body_input_type (ReturnType(*)(T)) |
template<typename V , typename T > | |
const V & | cast_to (T const &t) |
template<typename V , typename T > | |
bool | is_a (T const &t) |
template<size_t N, typename MOP > | |
tbb::flow::tuple_element< N, typename MOP::output_ports_type >::type & | output_port (MOP &op) |
void | check_task_and_spawn (graph &g, task *t) |
template<typename CompositeType > | |
void | add_nodes_impl (CompositeType *, bool) |
template<typename CompositeType , typename NodeType1 , typename... NodeTypes> | |
void | add_nodes_impl (CompositeType *c_node, bool visible, const NodeType1 &n1, const NodeTypes &... n) |
template<size_t N, typename JNT > | |
tbb::flow::tuple_element< N, typename JNT::input_ports_type >::type & | input_port (JNT &jn) |
templated function to refer to input ports of the join node More... | |
template<typename IndexerNodeBaseType , typename T , size_t K> | |
task * | do_try_put (const T &v, void *p) |
template<typename... Args> | |
void | ignore_return_values (Args &&...) |
template<typename T > | |
T | or_return_values (T &&t) |
template<typename T , typename... Rest> | |
T | or_return_values (T &&t, Rest &&... rest) |
opencl_device_list | find_available_devices () |
void | activate_graph (tbb::flow::interface10::graph &g) |
void | deactivate_graph (tbb::flow::interface10::graph &g) |
bool | is_graph_active (tbb::flow::interface10::graph &g) |
tbb::task & | prioritize_task (tbb::flow::interface10::graph &g, tbb::task &arena_task) |
void | spawn_in_graph_arena (graph &g, tbb::task &arena_task) |
Spawns a task inside graph arena. More... | |
void | enqueue_in_graph_arena (graph &g, tbb::task &arena_task) |
Enqueues a task inside graph arena. More... | |
void | add_task_to_graph_reset_list (tbb::flow::interface10::graph &g, tbb::task *tp) |
typedef tbb::concurrent_priority_queue<graph_task*, graph_task_comparator> tbb::flow::interface11::internal::graph_task_priority_queue_t |
Definition at line 181 of file _flow_graph_impl.h.
typedef tbb::internal::uint64_t tbb::flow::interface11::internal::tag_value |
Definition at line 31 of file flow_graph.h.
|
inline |
Definition at line 486 of file _flow_graph_impl.h.
References tbb::flow::interface10::graph::my_is_active.
void tbb::flow::interface11::internal::add_nodes_impl | ( | CompositeType * | , |
bool | |||
) |
Definition at line 958 of file flow_graph.h.
Referenced by tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::add_nodes(), tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple<> >::add_nodes(), tbb::flow::interface11::composite_node< tbb::flow::tuple<>, tbb::flow::tuple< OutputTypes... > >::add_nodes(), tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::add_visible_nodes(), tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple<> >::add_visible_nodes(), and tbb::flow::interface11::composite_node< tbb::flow::tuple<>, tbb::flow::tuple< OutputTypes... > >::add_visible_nodes().
void tbb::flow::interface11::internal::add_nodes_impl | ( | CompositeType * | c_node, |
bool | visible, | ||
const NodeType1 & | n1, | ||
const NodeTypes &... | n | ||
) |
Definition at line 961 of file flow_graph.h.
|
inline |
Definition at line 537 of file _flow_graph_impl.h.
References tbb::flow::interface10::graph::my_reset_task_list.
Referenced by tbb::flow::interface11::source_node< Output >::reset_node().
const V& tbb::flow::interface11::internal::cast_to | ( | T const & | t | ) |
Definition at line 715 of file flow_graph.h.
void tbb::flow::interface11::internal::check_input_node_body_input_type | ( | Body | ) |
Definition at line 118 of file flow_graph.h.
void tbb::flow::interface11::internal::check_input_node_body_input_type | ( | ReturnType(*)(T) | ) |
Definition at line 123 of file flow_graph.h.
void tbb::flow::interface11::internal::check_input_node_body_input_type_impl | ( | Body | ) |
Definition at line 111 of file flow_graph.h.
Definition at line 723 of file flow_graph.h.
|
inline |
Definition at line 490 of file _flow_graph_impl.h.
References tbb::flow::interface10::graph::my_is_active.
Referenced by tbb::flow::interface10::graph::reset().
task* tbb::flow::interface11::internal::do_try_put | ( | const T & | v, |
void * | p | ||
) |
Definition at line 34 of file flow_graph.h.
Referenced by streaming_node< tuple< Ports... >, JP, StreamFactory >::args_storage< Args >::enqueue().
|
inline |
Enqueues a task inside graph arena.
Definition at line 530 of file _flow_graph_impl.h.
References __TBB_ASSERT, tbb::task::enqueue(), tbb::interface7::task_arena::is_active(), is_graph_active(), tbb::flow::interface10::graph::my_task_arena, and prioritize_task().
Referenced by tbb::flow::interface11::async_node< Input, Output, Policy, Allocator >::try_put_impl().
|
inline |
Definition at line 294 of file flow_graph_opencl_node.h.
References tbb::flow::interface11::opencl_device_list::add(), d, tbb::flow::interface11::enforce_cl_retcode(), and p.
Referenced by tbb::flow::interface11::opencl_info::available_devices().
void tbb::flow::interface11::internal::ignore_return_values | ( | Args && | ... | ) |
Definition at line 64 of file flow_graph.h.
tbb::flow::tuple_element<N, typename JNT::input_ports_type>::type& tbb::flow::interface11::internal::input_port | ( | JNT & | jn | ) |
templated function to refer to input ports of the join node
Definition at line 1996 of file flow_graph.h.
bool tbb::flow::interface11::internal::is_a | ( | T const & | t | ) |
Definition at line 718 of file flow_graph.h.
|
inline |
Definition at line 494 of file _flow_graph_impl.h.
References tbb::flow::interface10::graph::my_is_active.
Referenced by internal::function_input_base< Input, Policy, A, multifunction_input< Input, OutputPortSet, Policy, A > >::create_body_task(), internal::function_input_base< Input, Policy, A, multifunction_input< Input, OutputPortSet, Policy, A > >::create_forward_task(), internal::join_node_FE< reserving, InputTuple, OutputTuple >::decrement_port_count(), internal::join_node_FE< queueing, InputTuple, OutputTuple >::decrement_port_count(), enqueue_in_graph_arena(), internal::continue_input< Output, Policy >::execute(), internal::join_node_FE< key_matching< K, KHash >, InputTuple, OutputTuple >::fill_output_buffer(), tbb::flow::interface11::limiter_node< T, DecrementType >::forward_task(), internal::join_node_base< JP, InputTuple, OutputTuple >::handle_operations(), tbb::flow::interface11::buffer_node< T, Allocator >::handle_operations_impl(), tbb::flow::interface11::limiter_node< T, DecrementType >::register_predecessor(), tbb::flow::interface11::limiter_node< T, DecrementType >::register_successor(), tbb::flow::interface11::overwrite_node< T >::register_successor(), tbb::flow::interface10::graph::run(), spawn_in_graph_arena(), tbb::flow::interface11::input_node< Output >::spawn_put(), tbb::flow::interface11::source_node< Output >::spawn_put(), and tbb::flow::interface11::limiter_node< T, DecrementType >::try_put_task().
T tbb::flow::interface11::internal::or_return_values | ( | T && | t | ) |
Definition at line 67 of file flow_graph.h.
T tbb::flow::interface11::internal::or_return_values | ( | T && | t, |
Rest &&... | rest | ||
) |
Definition at line 69 of file flow_graph.h.
tbb::flow::tuple_element<N, typename MOP::output_ports_type>::type& tbb::flow::interface11::internal::output_port | ( | MOP & | op | ) |
Definition at line 719 of file flow_graph.h.
|
inline |
Non-preemptive priority pattern. The original task is submitted as a work item to the priority queue, and a new critical task is created to take and execute a work item with the highest known priority. The reference counting responsibility is transferred (via allocate_continuation) to the new task.
Non-preemptive priority pattern. The original task is submitted as a work item to the priority queue, and a new critical task is created to take and execute a work item with the highest known priority. The reference counting responsibility is transferred (via allocate_continuation) to the new task.
Definition at line 499 of file _flow_graph_impl.h.
References tbb::task::allocate_continuation(), tbb::internal::make_critical(), tbb::flow::interface10::graph::my_priority_queue, tbb::flow::internal::no_priority, tbb::flow::interface11::graph_task::priority, and tbb::interface5::concurrent_priority_queue< T, Compare, A >::push().
Referenced by enqueue_in_graph_arena(), and spawn_in_graph_arena().
|
inline |
Spawns a task inside graph arena.
Definition at line 521 of file _flow_graph_impl.h.
References __TBB_ASSERT, tbb::interface7::task_arena::execute(), tbb::interface7::task_arena::is_active(), is_graph_active(), tbb::flow::interface10::graph::my_task_arena, and prioritize_task().
Referenced by internal::function_input< Input, Output, Policy, A >::apply_body_impl_bypass(), internal::check_task_and_spawn(), internal::join_node_FE< reserving, InputTuple, OutputTuple >::decrement_port_count(), internal::join_node_FE< queueing, InputTuple, OutputTuple >::decrement_port_count(), tbb::flow::interface11::buffer_node< T, Allocator >::enqueue_forwarding_task(), internal::join_node_FE< key_matching< K, KHash >, InputTuple, OutputTuple >::fill_output_buffer(), tbb::flow::interface11::limiter_node< T, DecrementType >::forward_task(), internal::join_node_base< JP, InputTuple, OutputTuple >::handle_operations(), tbb::flow::interface11::limiter_node< T, DecrementType >::register_predecessor(), tbb::flow::interface11::limiter_node< T, DecrementType >::register_successor(), tbb::flow::interface11::overwrite_node< T >::register_successor(), internal::function_input_base< Input, Policy, A, multifunction_input< Input, OutputPortSet, Policy, A > >::spawn_forward_task(), tbb::flow::interface11::input_node< Output >::spawn_put(), tbb::flow::interface11::source_node< Output >::spawn_put(), and tbb::flow::interface11::buffer_node< T, Allocator >::try_put_task().