Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface10::internal::decrementer< T > Class Template Reference

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface10::internal::decrementer< T >:
Collaboration diagram for tbb::flow::interface10::internal::decrementer< T >:

Public Types

typedef continue_msg input_type
 
typedef continue_msg output_type
 
- Public Types inherited from tbb::flow::interface10::continue_receiver
typedef continue_msg input_type
 The input type. More...
 
typedef receiver< input_type >::predecessor_type predecessor_type
 The predecessor type for this node. More...
 
- Public Types inherited from tbb::flow::interface10::receiver< continue_msg >
typedef continue_msg input_type
 The input type of this receiver. More...
 
typedef internal::async_helpers< continue_msg >::filtered_type filtered_type
 
- Public Types inherited from tbb::flow::interface10::internal::untyped_receiver
typedef untyped_sender predecessor_type
 The predecessor type for this node. More...
 

Public Member Functions

 decrementer (int number_of_predecessors=0)
 
void set_owner (T *node)
 
- Public Member Functions inherited from tbb::flow::interface10::continue_receiver
 continue_receiver (__TBB_FLOW_GRAPH_PRIORITY_ARG1(int number_of_predecessors, node_priority_t priority))
 Constructor. More...
 
 continue_receiver (const continue_receiver &src)
 Copy constructor. More...
 
bool register_predecessor (predecessor_type &) __TBB_override
 Increments the trigger threshold. More...
 
bool remove_predecessor (predecessor_type &) __TBB_override
 Decrements the trigger threshold. More...
 
- Public Member Functions inherited from tbb::flow::interface10::receiver< continue_msg >
bool try_put (const typename internal::async_helpers< continue_msg >::filtered_type &t)
 Put an item to the receiver. More...
 
bool try_put (const typename internal::async_helpers< continue_msg >::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...
 

Protected Member Functions

graphgraph_reference () __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface10::continue_receiver
tasktry_put_task (const input_type &) __TBB_override
 Put item to successor; return task to run the successor if possible. More...
 
void reset_receiver (reset_flags f) __TBB_override
 put receiver back in initial state More...
 
bool is_continue_receiver () __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface10::receiver< continue_msg >
virtual tasktry_put_task_wrapper (const void *p, bool is_async) __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface10::internal::untyped_receiver
template<typename X >
tasktry_put_task (const X &t)
 

Private Member Functions

taskexecute () __TBB_override
 Does whatever should happen when the threshold is reached. More...
 
- Private Member Functions inherited from tbb::internal::no_copy
 no_copy ()
 Allow default construction. More...
 

Private Attributes

T * my_node
 

Additional Inherited Members

- Protected Attributes inherited from tbb::flow::interface10::continue_receiver
spin_mutex my_mutex
 
int my_predecessor_count
 
int my_current_count
 
int my_initial_predecessor_count
 

Detailed Description

template<typename T>
class tbb::flow::interface10::internal::decrementer< T >

Definition at line 349 of file flow_graph.h.

Member Typedef Documentation

◆ input_type

Definition at line 365 of file flow_graph.h.

◆ output_type

Definition at line 366 of file flow_graph.h.

Constructor & Destructor Documentation

◆ decrementer()

template<typename T>
tbb::flow::interface10::internal::decrementer< T >::decrementer ( int  number_of_predecessors = 0)
inline

Definition at line 367 of file flow_graph.h.

376  :
377  template<typename X>

Member Function Documentation

◆ execute()

template<typename T>
task* tbb::flow::interface10::internal::decrementer< T >::execute ( )
inlineprivatevirtual

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().

Implements tbb::flow::interface10::continue_receiver.

Definition at line 353 of file flow_graph.h.

362  { return false; }

◆ graph_reference()

template<typename T>
graph& tbb::flow::interface10::internal::decrementer< T >::graph_reference ( )
inlineprotectedvirtual

Implements tbb::flow::interface10::internal::untyped_receiver.

Definition at line 359 of file flow_graph.h.

362  { return false; }

◆ set_owner()

template<typename T>
void tbb::flow::interface10::internal::decrementer< T >::set_owner ( T *  node)
inline

Definition at line 376 of file flow_graph.h.

376 :
377  template<typename X>

Member Data Documentation

◆ my_node

template<typename T>
T* tbb::flow::interface10::internal::decrementer< T >::my_node
private

Definition at line 351 of file flow_graph.h.


The documentation for this class was generated from the following file:

Copyright © 2005-2019 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.