Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
The graph class.
More...
#include <_flow_graph_impl.h>
The graph class.
This class serves as a handle to the graph
Definition at line 211 of file _flow_graph_impl.h.
◆ const_iterator
◆ iterator
◆ task_list_type
◆ graph() [1/2]
tbb::flow::interface10::graph::graph |
( |
| ) |
|
|
inline |
◆ graph() [2/2]
◆ ~graph()
tbb::flow::interface10::graph::~graph |
( |
| ) |
|
|
inline |
◆ begin() [1/2]
◆ begin() [2/2]
◆ cbegin()
◆ cend()
◆ decrement_wait_count()
void tbb::flow::interface10::graph::decrement_wait_count |
( |
| ) |
|
|
inline |
◆ end() [1/2]
◆ end() [2/2]
◆ exception_thrown()
bool tbb::flow::interface10::graph::exception_thrown |
( |
| ) |
|
|
inline |
◆ increment_wait_count()
void tbb::flow::interface10::graph::increment_wait_count |
( |
| ) |
|
|
inline |
◆ is_cancelled()
bool tbb::flow::interface10::graph::is_cancelled |
( |
| ) |
|
|
inline |
◆ prepare_task_arena()
void tbb::flow::interface10::graph::prepare_task_arena |
( |
bool |
reinit = false | ) |
|
|
inlineprivate |
◆ register_node()
◆ release_wait()
void tbb::flow::interface10::graph::release_wait |
( |
| ) |
|
|
inlinevirtual |
◆ remove_node()
◆ reserve_wait()
void tbb::flow::interface10::graph::reserve_wait |
( |
| ) |
|
|
inlinevirtual |
◆ reset()
Definition at line 842 of file flow_graph.h.
References tbb::flow::interface11::internal::activate_graph(), begin(), cancelled, caught_exception, tbb::flow::interface11::internal::deactivate_graph(), end(), my_context, my_reset_task_list, prepare_task_arena(), tbb::task_group_context::reset(), tbb::flow::interface11::graph_node::reset_node(), and tbb::flow::interface11::internal::spawn_in_graph_arena().
◆ root_task()
tbb::task* tbb::flow::interface10::graph::root_task |
( |
| ) |
|
|
inline |
◆ run() [1/2]
template<typename Body >
void tbb::flow::interface10::graph::run |
( |
Body |
body | ) |
|
|
inline |
◆ run() [2/2]
template<typename Receiver , typename Body >
void tbb::flow::interface10::graph::run |
( |
Receiver & |
r, |
|
|
Body |
body |
|
) |
| |
|
inline |
◆ wait_for_all()
void tbb::flow::interface10::graph::wait_for_all |
( |
| ) |
|
|
inline |
Wait until graph is idle and decrement_wait_count calls equals increment_wait_count calls.
The waiting thread will go off and steal work while it is block in the wait_for_all.
Definition at line 338 of file _flow_graph_impl.h.
342 #if TBB_USE_EXCEPTIONS
346 #if __TBB_TASK_GROUP_CONTEXT
349 #if TBB_USE_EXCEPTIONS
359 #if __TBB_TASK_GROUP_CONTEXT
367 #if __TBB_TASK_GROUP_CONTEXT
References cancelled, caught_exception, tbb::task_group_context::concurrent_wait, tbb::interface7::task_arena::execute(), tbb::task_group_context::is_group_execution_cancelled(), my_context, my_root_task, my_task_arena, tbb::task_group_context::reset(), tbb::task::set_ref_count(), and tbb::task_group_context::traits().
Referenced by ~graph().
◆ tbb::flow::interface11::graph_iterator
template<typename C , typename N >
◆ tbb::flow::interface11::graph_node
◆ tbb::flow::interface11::internal::activate_graph
◆ tbb::flow::interface11::internal::add_task_to_graph_reset_list
◆ tbb::flow::interface11::internal::deactivate_graph
◆ tbb::flow::interface11::internal::enqueue_in_graph_arena
◆ tbb::flow::interface11::internal::is_graph_active
◆ tbb::flow::interface11::internal::prioritize_task
◆ tbb::flow::interface11::internal::spawn_in_graph_arena
◆ tbb::interface7::internal::task_arena_base
◆ cancelled
bool tbb::flow::interface10::graph::cancelled |
|
private |
◆ caught_exception
bool tbb::flow::interface10::graph::caught_exception |
|
private |
◆ my_context
◆ my_is_active
bool tbb::flow::interface10::graph::my_is_active |
|
private |
◆ my_nodes
◆ my_nodes_last
◆ my_priority_queue
◆ my_reset_task_list
◆ my_root_task
tbb::task* tbb::flow::interface10::graph::my_root_task |
|
private |
◆ my_task_arena
◆ nodelist_mutex
◆ own_context
bool tbb::flow::interface10::graph::own_context |
|
private |
The documentation for this class was generated from the following files:
void prepare_task_arena(bool reinit=false)
tbb::task_arena * my_task_arena
void release_wait() __TBB_override
Deregisters an external entity that may have interacted with the graph.
void set_ref_count(int count)
Set reference count.
bool is_graph_active(tbb::flow::interface10::graph &g)
void spawn_in_graph_arena(tbb::flow::interface10::graph &g, tbb::task &arena_task)
Spawns a task inside graph arena.
static internal::allocate_root_proxy allocate_root()
Returns proxy for overloaded new that allocates a root task.
Tag class used to indicate the "attaching" constructor.
task_list_type my_reset_task_list
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
tbb::task_group_context * my_context
void wait_for_all()
Wait until graph is idle and decrement_wait_count calls equals increment_wait_count calls.
void __TBB_EXPORTED_METHOD reset()
Forcefully reinitializes the context after the task tree it was associated with is completed.
tbb::task * root_task()
Returns the root task of the graph.
iterator end()
end iterator
tbb::flow::interface11::graph_iterator< graph, tbb::flow::interface11::graph_node > iterator
tbb::flow::interface11::graph_node * my_nodes_last
virtual void reset_node(reset_flags f=rf_reset_protocol)=0
void initialize()
Forces allocation of the resources for the task_arena as specified in constructor arguments.
internal::return_type_or_void< F >::type execute(F &f)
iterator begin()
start iterator
tbb::spin_mutex nodelist_mutex
static void fgt_reserve_wait(void *)
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void * lock
static void fgt_release_wait(void *)
void increment_ref_count()
Atomically increment reference count.
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task * task
tbb::flow::interface11::graph_iterator< const graph, const tbb::flow::interface11::graph_node > const_iterator
bool __TBB_EXPORTED_METHOD is_group_execution_cancelled() const
Returns true if the context received cancellation request.
uintptr_t traits() const
Returns the context's trait.
void reserve_wait() __TBB_override
Used to register that an external entity may still interact with the graph.
void deactivate_graph(tbb::flow::interface10::graph &g)
void activate_graph(tbb::flow::interface10::graph &g)
static void fgt_graph(void *)
The base of all graph nodes.
tbb::flow::interface11::graph_node * my_nodes
int decrement_ref_count()
Atomically decrement reference count and returns its new value.
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.