Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType > Class Template Reference

Input and scheduling for a function node that takes a type Input as input. More...

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >:
Collaboration diagram for tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >:

Classes

class  operation_type
 

Public Types

typedef Input input_type
 The input type of this receiver. More...
 
typedef receiver< input_type >::predecessor_type predecessor_type
 
typedef predecessor_cache< input_type, null_mutexpredecessor_cache_type
 
typedef function_input_queue< input_type, A > input_queue_type
 
typedef tbb::internal::allocator_rebind< A, input_queue_type >::type queue_allocator_type
 
- Public Types inherited from tbb::flow::interface11::internal::untyped_receiver
typedef untyped_sender predecessor_type
 The predecessor type for this node. More...
 

Public Member Functions

 __TBB_STATIC_ASSERT (!((internal::has_policy< queueing, Policy >::value) &&(internal::has_policy< rejecting, Policy >::value)), "queueing and rejecting policies can't be specified simultaneously")
 
 function_input_base (graph &g, __TBB_FLOW_GRAPH_PRIORITY_ARG1(size_t max_concurrency, node_priority_t priority))
 Constructor for function_input_base. More...
 
 function_input_base (const function_input_base &src)
 Copy constructor. More...
 
virtual ~function_input_base ()
 Destructor. More...
 
tasktry_put_task (const input_type &t) __TBB_override
 Put item to successor; return task to run the successor if possible. More...
 
bool register_predecessor (predecessor_type &src) __TBB_override
 Adds src to the list of cached predecessors. More...
 
bool remove_predecessor (predecessor_type &src) __TBB_override
 Removes src from the list of cached predecessors. More...
 
- Public Member Functions inherited from tbb::flow::interface11::receiver< Input >
bool try_put (const typename internal::async_helpers< Input >::filtered_type &t)
 Put an item to the receiver. More...
 
bool try_put (const typename internal::async_helpers< Input >::async_type &t)
 
- Public Member Functions inherited from tbb::flow::interface11::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

void reset_function_input_base (reset_flags f)
 
void reset_receiver (reset_flags f) __TBB_override
 put receiver back in initial state More...
 
graphgraph_reference () const __TBB_override
 
tasktry_get_postponed_task (const input_type &i)
 
- Protected Member Functions inherited from tbb::flow::interface11::receiver< Input >
virtual tasktry_put_task_wrapper (const void *p, bool is_async) __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface11::internal::untyped_receiver
template<typename X >
tasktry_put_task (const X &t)
 
virtual bool is_continue_receiver ()
 

Protected Attributes

graphmy_graph_ref
 
const size_t my_max_concurrency
 
size_t my_concurrency
 
input_queue_typemy_queue
 
predecessor_cache< input_type, null_mutexmy_predecessors
 

Private Types

enum  op_type {
  reg_pred, rem_pred, try_fwd, tryput_bypass,
  app_body_bypass, occupy_concurrency
}
 
typedef function_input_base< Input, Policy, A, ImplType > class_type
 
typedef internal::aggregating_functor< class_type, operation_typehandler_type
 

Private Member Functions

taskperform_queued_requests ()
 
void handle_operations (operation_type *op_list)
 
void internal_try_put_task (operation_type *op)
 Put to the node, but return the task instead of enqueueing it. More...
 
void internal_forward (operation_type *op)
 Creates tasks for postponed messages if available and if concurrency allows. More...
 
taskinternal_try_put_bypass (const input_type &t)
 
tasktry_put_task_impl (const input_type &t, tbb::internal::true_type)
 
tasktry_put_task_impl (const input_type &t, tbb::internal::false_type)
 
taskapply_body_bypass (const input_type &i)
 Applies the body to the provided input. More...
 
taskcreate_body_task (const input_type &input)
 allocates a task to apply a body More...
 
taskforward_task ()
 This is executed by an enqueued task, the "forwarder". More...
 
taskcreate_forward_task ()
 
void spawn_forward_task ()
 Spawns a task that calls forward() More...
 
- Private Member Functions inherited from tbb::internal::no_assign
void operator= (const no_assign &)=delete
 
 no_assign (const no_assign &)=default
 
 no_assign ()=default
 

Private Attributes

bool forwarder_busy
 
aggregator< handler_type, operation_typemy_aggregator
 

Friends

class apply_body_task_bypass< class_type, input_type >
 
class forward_task_bypass< class_type >
 
class internal::aggregating_functor< class_type, operation_type >
 

Additional Inherited Members

- Public Attributes inherited from tbb::flow::interface11::receiver< Input >
__TBB_DEPRECATED typedef Input input_type
 The input type of this receiver. More...
 
__TBB_DEPRECATED typedef internal::async_helpers< Input >::filtered_type filtered_type
 

Detailed Description

template<typename Input, typename Policy, typename A, typename ImplType>
class tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >

Input and scheduling for a function node that takes a type Input as input.

Definition at line 61 of file flow_graph.h.

Member Typedef Documentation

◆ class_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef function_input_base<Input, Policy, A, ImplType> tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::class_type
private

Definition at line 68 of file flow_graph.h.

◆ handler_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef internal::aggregating_functor<class_type, operation_type> tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::handler_type
private

Definition at line 227 of file flow_graph.h.

◆ input_queue_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef function_input_queue<input_type, A> tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::input_queue_type

Definition at line 76 of file flow_graph.h.

◆ input_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef Input tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::input_type

The input type of this receiver.

Definition at line 73 of file flow_graph.h.

◆ predecessor_cache_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef predecessor_cache<input_type, null_mutex > tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::predecessor_cache_type

Definition at line 75 of file flow_graph.h.

◆ predecessor_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef receiver<input_type>::predecessor_type tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::predecessor_type

Definition at line 74 of file flow_graph.h.

◆ queue_allocator_type

template<typename Input, typename Policy, typename A, typename ImplType>
typedef tbb::internal::allocator_rebind<A, input_queue_type>::type tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::queue_allocator_type

Definition at line 77 of file flow_graph.h.

Member Enumeration Documentation

◆ op_type

template<typename Input, typename Policy, typename A, typename ImplType>
enum tbb::flow::interface11::internal::function_input_base::op_type
private
Enumerator
reg_pred 
rem_pred 
try_fwd 
tryput_bypass 
app_body_bypass 
occupy_concurrency 

Definition at line 62 of file flow_graph.h.

77  {

Constructor & Destructor Documentation

◆ function_input_base() [1/2]

template<typename Input, typename Policy, typename A, typename ImplType>
tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::function_input_base ( graph g,
__TBB_FLOW_GRAPH_PRIORITY_ARG1(size_t max_concurrency, node_priority_t priority)   
)
inline

Constructor for function_input_base.

Definition at line 87 of file flow_graph.h.

102  {

◆ function_input_base() [2/2]

template<typename Input, typename Policy, typename A, typename ImplType>
tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::function_input_base ( const function_input_base< Input, Policy, A, ImplType > &  src)
inline

Copy constructor.

Definition at line 99 of file flow_graph.h.

102  {
103 namespace flow {
104 
106 enum concurrency { unlimited = 0, serial = 1 };
107 
concurrency
An enumeration the provides the two most common concurrency levels: unlimited and serial.
Definition: flow_graph.h:106

◆ ~function_input_base()

template<typename Input, typename Policy, typename A, typename ImplType>
virtual tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::~function_input_base ( )
inlinevirtual

Destructor.

Definition at line 113 of file flow_graph.h.

114  {};
115 

Member Function Documentation

◆ __TBB_STATIC_ASSERT()

template<typename Input, typename Policy, typename A, typename ImplType>
tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::__TBB_STATIC_ASSERT ( (internal::has_policy< queueing, Policy >::value) &&(internal::has_policy< rejecting, Policy >::value),
"queueing and rejecting policies can't be specified simultaneously"   
)

◆ apply_body_bypass()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::apply_body_bypass ( const input_type i)
inlineprivate

Applies the body to the provided input.

Definition at line 373 of file flow_graph.h.

373  {}
374 

◆ create_body_task()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::create_body_task ( const input_type input)
inlineprivate

allocates a task to apply a body

Definition at line 378 of file flow_graph.h.

389  { return false; }

◆ create_forward_task()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::create_forward_task ( )
inlineprivate

Definition at line 402 of file flow_graph.h.

403  :
404  template<typename X>
405  task *try_put_task(const X& t) {
407  }
virtual task * try_put_task_wrapper(const void *p, bool is_async) __TBB_override
Definition: flow_graph.h:481
static const void * to_void_ptr(const T &t)
Definition: flow_graph.h:229
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
task * try_put_task(const input_type &t) __TBB_override
Put item to successor; return task to run the successor if possible.
Definition: flow_graph.h:117

◆ forward_task()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::forward_task ( )
inlineprivate

This is executed by an enqueued task, the "forwarder".

Definition at line 387 of file flow_graph.h.

389  { return false; }
390 
392  virtual bool remove_predecessor( predecessor_type & ) { return false; }
393 
394 #if TBB_DEPRECATED_FLOW_NODE_EXTRACTION
395  typedef internal::edge_container<predecessor_type> built_predecessors_type;
396  typedef built_predecessors_type::edge_list_type predecessor_list_type;
397  virtual built_predecessors_type &built_predecessors() = 0;
398  virtual void internal_add_built_predecessor( predecessor_type & ) = 0;
399  virtual void internal_delete_built_predecessor( predecessor_type & ) = 0;
400  virtual void copy_predecessors( predecessor_list_type & ) = 0;
bool remove_predecessor(predecessor_type &src) __TBB_override
Removes src from the list of cached predecessors.
Definition: flow_graph.h:130
receiver< input_type >::predecessor_type predecessor_type
Definition: flow_graph.h:74

◆ graph_reference()

template<typename Input, typename Policy, typename A, typename ImplType>
graph& tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::graph_reference ( ) const
inlineprotectedvirtual

Implements tbb::flow::interface11::internal::untyped_receiver.

Definition at line 194 of file flow_graph.h.

194  {
195 namespace flow {
196 namespace interface11 {

◆ handle_operations()

template<typename Input, typename Policy, typename A, typename ImplType>
void tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::handle_operations ( operation_type op_list)
inlineprivate

Definition at line 250 of file flow_graph.h.

256  {
257  // Incoming 't' is NOT async
258  return this_recv->try_put_task(from_void_ptr(p));
259  }
260  }
261 };
262 
263 template< typename T >
264 struct async_helpers< T, typename std::enable_if< std::is_base_of<async_msg<typename T::async_msg_data_type>, T>::value >::type > {
265  typedef T async_type;
266  typedef typename T::async_msg_data_type filtered_type;
267 
268  static const bool is_async_type = true;
269 
270  // Receiver-classes use const interfaces
271  static const void* to_void_ptr(const T& t) {
272  return static_cast<const void*>(&static_cast<const async_msg<filtered_type>&>(t));
273  }
274 
275  static void* to_void_ptr(T& t) {
276  return static_cast<void*>(&static_cast<async_msg<filtered_type>&>(t));
277  }
278 
279  // Sender-classes use non-const interfaces
280  static const T& from_void_ptr(const void* p) {
281  return *static_cast<const T*>(static_cast<const async_msg<filtered_type>*>(p));
282  }
283 
284  static T& from_void_ptr(void* p) {
285  return *static_cast<T*>(static_cast<async_msg<filtered_type>*>(p));
286  }
287 
288  // Used in receiver<T> class
289  static task* try_put_task_wrapper_impl(receiver<T>* const this_recv, const void *p, bool is_async) {
290  if (is_async) {
291  // Both are async
292  return this_recv->try_put_task(from_void_ptr(p));
293  }
294  else {
295  // This (T) is async and incoming 'X t' is NOT async
296  // Create async_msg for X
298  const T msg(t);
299  return this_recv->try_put_task(msg);
300  }
301  }
302 };
303 
304 class untyped_receiver;
305 
306 class untyped_sender {
307  template< typename, typename > friend class internal::predecessor_cache;
308  template< typename, typename > friend class internal::reservable_predecessor_cache;
309 public:
static const T & from_void_ptr(const void *p)
Definition: flow_graph.h:237
void const char const char int ITT_FORMAT __itt_group_sync p
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
An cache of predecessors that supports requests and reservations.
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 ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type
__TBB_DEPRECATED typedef internal::async_helpers< Input >::filtered_type filtered_type
Definition: flow_graph.h:469
A cache of predecessors that only supports try_get.

◆ internal_forward()

template<typename Input, typename Policy, typename A, typename ImplType>
void tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::internal_forward ( operation_type op)
inlineprivate

Creates tasks for postponed messages if available and if concurrency allows.

Definition at line 329 of file flow_graph.h.

329  { return false; }
330 
331 #if TBB_DEPRECATED_FLOW_NODE_EXTRACTION
332  typedef internal::edge_container<successor_type> built_successors_type;
334  typedef built_successors_type::edge_list_type successor_list_type;
335  virtual built_successors_type &built_successors() = 0;
336  virtual void internal_add_built_successor( successor_type & ) = 0;
337  virtual void internal_delete_built_successor( successor_type & ) = 0;
338  virtual void copy_successors( successor_list_type &) = 0;
339  virtual size_t successor_count() = 0;

◆ internal_try_put_bypass()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::internal_try_put_bypass ( const input_type t)
inlineprivate

Definition at line 341 of file flow_graph.h.

341  :
343  template< typename X >
344  bool try_get( X &t ) {
346  }
347 
static const void * to_void_ptr(const T &t)
Definition: flow_graph.h:229

◆ internal_try_put_task()

template<typename Input, typename Policy, typename A, typename ImplType>
void tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::internal_try_put_task ( operation_type op)
inlineprivate

Put to the node, but return the task instead of enqueueing it.

Definition at line 312 of file flow_graph.h.

313  {}
314 
315  // NOTE: Following part of PUBLIC section is copy-paste from original sender<T> class
316 
317  // TODO: Prevent untyped successor registration
318 
320  virtual bool register_successor( successor_type &r ) = 0;
321 
323  virtual bool remove_successor( successor_type &r ) = 0;
324 
326  virtual bool try_release( ) { return false; }

◆ perform_queued_requests()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::perform_queued_requests ( )
inlineprivate

Definition at line 231 of file flow_graph.h.

233  {
234  return static_cast<void*>(&t);
235  }
236 
237  static const T& from_void_ptr(const void* p) {
238  return *static_cast<const T*>(p);
239  }
240 
241  static T& from_void_ptr(void* p) {
242  return *static_cast<T*>(p);
243  }
244 
245  static task* try_put_task_wrapper_impl(receiver<T>* const this_recv, const void *p, bool is_async) {
246  if (is_async) {
247  // This (T) is NOT async and incoming 'A<X> t' IS async
248  // Get data from async_msg
249  const async_msg<filtered_type>& msg = async_helpers< async_msg<filtered_type> >::from_void_ptr(p);
void const char const char int ITT_FORMAT __itt_group_sync p
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

◆ register_predecessor()

template<typename Input, typename Policy, typename A, typename ImplType>
bool tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::register_predecessor ( predecessor_type src)
inlinevirtual

Adds src to the list of cached predecessors.

Reimplemented from tbb::flow::interface11::internal::untyped_receiver.

Definition at line 122 of file flow_graph.h.

125  {
126 
127 template<typename T, typename M> class successor_cache;

◆ remove_predecessor()

template<typename Input, typename Policy, typename A, typename ImplType>
bool tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::remove_predecessor ( predecessor_type src)
inlinevirtual

Removes src from the list of cached predecessors.

Reimplemented from tbb::flow::interface11::internal::untyped_receiver.

Definition at line 130 of file flow_graph.h.

134  {
135 struct following;

◆ reset_function_input_base()

template<typename Input, typename Policy, typename A, typename ImplType>
void tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::reset_function_input_base ( reset_flags  f)
inlineprotected

Definition at line 171 of file flow_graph.h.

171  {
172  built_edges.clear();
173  }
174 
175  // methods remove the statement from all predecessors/successors liste in the edge
176  // container.
177  template< typename S > void sender_extract(S &s);
178  template< typename R > void receiver_extract(R &r);
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 ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark S
void const char const char int ITT_FORMAT __itt_group_sync s

◆ reset_receiver()

template<typename Input, typename Policy, typename A, typename ImplType>
void tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::reset_receiver ( reset_flags  f)
inlineprotectedvirtual

put receiver back in initial state

Implements tbb::flow::interface11::internal::untyped_receiver.

Definition at line 187 of file flow_graph.h.

194  {

◆ spawn_forward_task()

template<typename Input, typename Policy, typename A, typename ImplType>
void tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::spawn_forward_task ( )
inlineprivate

Spawns a task that calls forward()

Definition at line 410 of file flow_graph.h.

418  { return false; }

◆ try_get_postponed_task()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::try_get_postponed_task ( const input_type i)
inlineprotected

Definition at line 198 of file flow_graph.h.

199  {
200  // if no RHS task, don't change left.
201  if (right == NULL) return left;
202  // right != NULL

◆ try_put_task()

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::try_put_task ( const input_type t)
inlinevirtual

Put item to successor; return task to run the successor if possible.

Implements tbb::flow::interface11::receiver< Input >.

Definition at line 117 of file flow_graph.h.

125  {

◆ try_put_task_impl() [1/2]

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::try_put_task_impl ( const input_type t,
tbb::internal::true_type   
)
inlineprivate

Definition at line 350 of file flow_graph.h.

350  {
352  }
353 
354  virtual bool try_get_wrapper( void* p, bool is_async ) = 0;
355  virtual bool try_reserve_wrapper( void* p, bool is_async ) = 0;
356 };
357 
358 class untyped_receiver {
359  template< typename, typename > friend class run_and_put_task;
360 
361  template< typename, typename > friend class internal::broadcast_cache;
static const void * to_void_ptr(const T &t)
Definition: flow_graph.h:229
void const char const char int ITT_FORMAT __itt_group_sync p
A cache of successors that are broadcast to.

◆ try_put_task_impl() [2/2]

template<typename Input, typename Policy, typename A, typename ImplType>
task* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::try_put_task_impl ( const input_type t,
tbb::internal::false_type   
)
inlineprivate

Definition at line 363 of file flow_graph.h.

368  :

Friends And Related Function Documentation

◆ apply_body_task_bypass< class_type, input_type >

template<typename Input, typename Policy, typename A, typename ImplType>
friend class apply_body_task_bypass< class_type, input_type >
friend

Definition at line 206 of file flow_graph.h.

◆ forward_task_bypass< class_type >

template<typename Input, typename Policy, typename A, typename ImplType>
friend class forward_task_bypass< class_type >
friend

Definition at line 207 of file flow_graph.h.

◆ internal::aggregating_functor< class_type, operation_type >

template<typename Input, typename Policy, typename A, typename ImplType>
friend class internal::aggregating_functor< class_type, operation_type >
friend

Definition at line 228 of file flow_graph.h.

Member Data Documentation

◆ forwarder_busy

template<typename Input, typename Policy, typename A, typename ImplType>
bool tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::forwarder_busy
private

Definition at line 226 of file flow_graph.h.

◆ my_aggregator

template<typename Input, typename Policy, typename A, typename ImplType>
aggregator< handler_type, operation_type > tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::my_aggregator
private

Definition at line 229 of file flow_graph.h.

◆ my_concurrency

template<typename Input, typename Policy, typename A, typename ImplType>
size_t tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::my_concurrency
protected

Definition at line 182 of file flow_graph.h.

◆ my_graph_ref

template<typename Input, typename Policy, typename A, typename ImplType>
graph& tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::my_graph_ref
protected

Definition at line 180 of file flow_graph.h.

◆ my_max_concurrency

template<typename Input, typename Policy, typename A, typename ImplType>
const size_t tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::my_max_concurrency
protected

Definition at line 181 of file flow_graph.h.

◆ my_predecessors

template<typename Input, typename Policy, typename A, typename ImplType>
predecessor_cache<input_type, null_mutex > tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::my_predecessors
protected

Definition at line 185 of file flow_graph.h.

◆ my_queue

template<typename Input, typename Policy, typename A, typename ImplType>
input_queue_type* tbb::flow::interface11::internal::function_input_base< Input, Policy, A, ImplType >::my_queue
protected

Definition at line 184 of file flow_graph.h.


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

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.