Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
An executable node that acts as a source, i.e. it has no predecessors. More...
#include <flow_graph.h>
Public Types | |
typedef Output | output_type |
The type of the output message, which is complete. More... | |
typedef sender< output_type >::successor_type | successor_type |
The type of successors of this node. More... | |
typedef null_type | input_type |
Public Member Functions | |
template<typename Body > | |
__TBB_NOINLINE_SYM | source_node (graph &g, Body body, bool is_active=true) |
Constructor for a node with a successor. More... | |
__TBB_NOINLINE_SYM | source_node (const source_node &src) |
Copy constructor. More... | |
~source_node () | |
The destructor. More... | |
bool | register_successor (successor_type &r) __TBB_override |
Add a new successor to this node. More... | |
bool | remove_successor (successor_type &r) __TBB_override |
Removes a successor from this node. More... | |
bool | try_get (output_type &v) __TBB_override |
Request an item from the node. More... | |
bool | try_reserve (output_type &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... | |
void | activate () |
Activates a node that was created in the inactive state. More... | |
template<typename Body > | |
Body | copy_function_object () |
![]() | |
graph_node (graph &g) | |
virtual | ~graph_node () |
![]() | |
virtual | ~sender () |
virtual __TBB_DEPRECATED bool | register_successor (successor_type &r)=0 |
Add a new successor to this node. More... | |
virtual __TBB_DEPRECATED bool | remove_successor (successor_type &r)=0 |
Removes a successor from this node. More... | |
Protected Member Functions | |
void | reset_node (reset_flags f) __TBB_override |
resets the source_node to its initial state More... | |
Private Member Functions | |
bool | try_reserve_apply_body (output_type &v) |
task * | create_put_task () |
void | spawn_put () |
Spawns a task that applies the body. More... | |
task * | apply_body_bypass () |
Applies the body. Returning SUCCESSFULLY_ENQUEUED okay; forward_task_bypass will handle it. More... | |
Private Attributes | |
spin_mutex | my_mutex |
bool | my_active |
bool | init_my_active |
internal::source_body< output_type > * | my_body |
internal::source_body< output_type > * | my_init_body |
internal::broadcast_cache< output_type > | my_successors |
bool | my_reserved |
bool | my_has_cached_item |
output_type | my_cached_item |
Friends | |
class | internal::source_task_bypass< source_node< output_type > > |
Additional Inherited Members | |
![]() | |
__TBB_DEPRECATED typedef Output | output_type |
The output type of this sender. More... | |
__TBB_DEPRECATED typedef receiver< Output > | successor_type |
The successor type for this node. More... | |
![]() | |
graph & | my_graph |
graph_node * | next |
graph_node * | prev |
An executable node that acts as a source, i.e. it has no predecessors.
Definition at line 1179 of file flow_graph.h.
typedef null_type tbb::flow::interface11::source_node< Output >::input_type |
Definition at line 1190 of file flow_graph.h.
typedef Output tbb::flow::interface11::source_node< Output >::output_type |
The type of the output message, which is complete.
Definition at line 1184 of file flow_graph.h.
typedef sender<output_type>::successor_type tbb::flow::interface11::source_node< Output >::successor_type |
The type of successors of this node.
Definition at line 1187 of file flow_graph.h.
|
inline |
Constructor for a node with a successor.
Definition at line 1199 of file flow_graph.h.
References CODEPTR, and tbb::internal::fgt_node_with_body().
|
inline |
Copy constructor.
Definition at line 1219 of file flow_graph.h.
References CODEPTR, and tbb::internal::fgt_node_with_body().
|
inline |
|
inline |
Activates a node that was created in the inactive state.
Definition at line 1337 of file flow_graph.h.
References lock.
|
inlineprivate |
Applies the body. Returning SUCCESSFULLY_ENQUEUED okay; forward_task_bypass will handle it.
Definition at line 1430 of file flow_graph.h.
|
inline |
Definition at line 1345 of file flow_graph.h.
|
inlineprivate |
Definition at line 1416 of file flow_graph.h.
|
inline |
|
inline |
|
inlineprotectedvirtual |
resets the source_node to its initial state
Implements tbb::flow::interface11::graph_node.
Definition at line 1362 of file flow_graph.h.
References tbb::flow::interface11::internal::add_task_to_graph_reset_list(), internal::source_body< Output >::clone(), tbb::flow::interface11::rf_clear_edges, and tbb::flow::interface11::rf_reset_bodies.
|
inlineprivate |
Spawns a task that applies the body.
Definition at line 1422 of file flow_graph.h.
References tbb::flow::interface11::internal::is_graph_active(), and tbb::flow::interface11::internal::spawn_in_graph_arena().
|
inlinevirtual |
Consumes a reserved item.
Reimplemented from tbb::flow::interface11::sender< Output >.
Definition at line 1325 of file flow_graph.h.
References __TBB_ASSERT, and lock.
|
inlinevirtual |
Request an item from the node.
Reimplemented from tbb::flow::interface11::sender< Output >.
Definition at line 1281 of file flow_graph.h.
References lock.
|
inlinevirtual |
Release a reserved item.
true = item has been released and so remains in sender, dest must request or reserve future items
Reimplemented from tbb::flow::interface11::sender< Output >.
Definition at line 1315 of file flow_graph.h.
References __TBB_ASSERT, and lock.
|
inlinevirtual |
Reserves an item.
Reimplemented from tbb::flow::interface11::sender< Output >.
Definition at line 1298 of file flow_graph.h.
References lock.
|
inlineprivate |
Definition at line 1390 of file flow_graph.h.
References tbb::internal::fgt_begin_body(), tbb::internal::fgt_end_body(), and lock.
|
friend |
Definition at line 1428 of file flow_graph.h.
|
private |
Definition at line 1381 of file flow_graph.h.
|
private |
Definition at line 1380 of file flow_graph.h.
|
private |
Definition at line 1382 of file flow_graph.h.
|
private |
Definition at line 1387 of file flow_graph.h.
|
private |
Definition at line 1386 of file flow_graph.h.
|
private |
Definition at line 1383 of file flow_graph.h.
|
private |
Definition at line 1379 of file flow_graph.h.
|
private |
Definition at line 1385 of file flow_graph.h.
|
private |
Definition at line 1384 of file flow_graph.h.