Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Base class for receivers of completion messages. More...
#include <flow_graph.h>
Public Attributes | |
__TBB_DEPRECATED typedef continue_msg | input_type |
The input type. More... | |
__TBB_DEPRECATED typedef receiver< input_type >::predecessor_type | predecessor_type |
The predecessor type for this node. More... | |
![]() | |
__TBB_DEPRECATED typedef continue_msg | input_type |
The input type of this receiver. More... | |
__TBB_DEPRECATED typedef internal::async_helpers< continue_msg >::filtered_type | filtered_type |
Protected Member Functions | |
task * | try_put_task (const input_type &) __TBB_override |
void | reset_receiver (reset_flags f) __TBB_override |
put receiver back in initial state More... | |
virtual task * | execute ()=0 |
Does whatever should happen when the threshold is reached. More... | |
bool | is_continue_receiver () __TBB_override |
![]() | |
virtual task * | try_put_task_wrapper (const void *p, bool is_async) __TBB_override |
virtual task * | try_put_task (const continue_msg &t)=0 |
Put item to successor; return task to run the successor if possible. More... | |
![]() | |
template<typename X > | |
task * | try_put_task (const X &t) |
virtual graph & | graph_reference () const =0 |
Protected Attributes | |
spin_mutex | my_mutex |
int | my_predecessor_count |
int | my_current_count |
int | my_initial_predecessor_count |
Friends | |
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 |
template<typename U , typename V > | |
class | tbb::flow::interface11::limiter_node |
template<typename TT , typename M > | |
class | internal::successor_cache |
Additional Inherited Members | |
![]() | |
typedef untyped_sender | predecessor_type |
The predecessor type for this node. More... | |
Base class for receivers of completion messages.
These receivers automatically reset, but cannot be explicitly waited on
Definition at line 599 of file flow_graph.h.
|
inlineexplicit |
Constructor.
Definition at line 609 of file flow_graph.h.
References my_current_count, my_initial_predecessor_count, and my_predecessor_count.
|
inline |
Copy constructor.
Definition at line 617 of file flow_graph.h.
|
protectedpure virtual |
Does whatever should happen when the threshold is reached.
This should be very fast or else spawn a task. This is called while the sender is blocked in the try_put().
Implemented in tbb::flow::interface11::internal::continue_input< Output, Policy >, and tbb::flow::interface11::internal::decrementer< T, continue_msg, void >.
|
inlineprotectedvirtual |
Reimplemented from tbb::flow::interface11::internal::untyped_receiver.
Definition at line 713 of file flow_graph.h.
|
inlinevirtual |
Increments the trigger threshold.
Reimplemented from tbb::flow::interface11::internal::untyped_receiver.
Definition at line 624 of file flow_graph.h.
References my_mutex, and my_predecessor_count.
|
inlinevirtual |
Decrements the trigger threshold.
Does not check to see if the removal of the predecessor now makes the current count exceed the new threshold. So removing a predecessor while the graph is active can cause unexpected results.
Reimplemented from tbb::flow::interface11::internal::untyped_receiver.
Definition at line 634 of file flow_graph.h.
|
inlineprotectedvirtual |
put receiver back in initial state
Implements tbb::flow::interface11::internal::untyped_receiver.
Reimplemented in tbb::flow::interface11::internal::continue_input< Output, Policy >.
Definition at line 698 of file flow_graph.h.
|
inlineprotected |
Definition at line 672 of file flow_graph.h.
References my_mutex.
|
friend |
Definition at line 669 of file flow_graph.h.
|
friend |
Definition at line 670 of file flow_graph.h.
|
friend |
Definition at line 712 of file flow_graph.h.
|
friend |
Definition at line 668 of file flow_graph.h.
|
friend |
Definition at line 696 of file flow_graph.h.
__TBB_DEPRECATED typedef continue_msg tbb::flow::interface11::continue_receiver::input_type |
The input type.
Definition at line 603 of file flow_graph.h.
|
protected |
Definition at line 691 of file flow_graph.h.
Referenced by continue_receiver().
|
protected |
Definition at line 692 of file flow_graph.h.
Referenced by continue_receiver().
|
protected |
Definition at line 689 of file flow_graph.h.
Referenced by tbb::flow::interface11::internal::tagged_msg< TagType, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::variant::operator=(), register_predecessor(), and try_put_task().
|
protected |
Definition at line 690 of file flow_graph.h.
Referenced by continue_receiver(), and register_predecessor().
__TBB_DEPRECATED typedef receiver<input_type>::predecessor_type tbb::flow::interface11::continue_receiver::predecessor_type |
The predecessor type for this node.
Definition at line 606 of file flow_graph.h.