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

An abstract cache of successors, specialized to continue_msg. More...

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface10::internal::successor_cache< continue_msg >:
Collaboration diagram for tbb::flow::interface10::internal::successor_cache< continue_msg >:

Public Member Functions

 successor_cache ()
 
void set_owner (sender< continue_msg > *owner)
 
virtual ~successor_cache ()
 
void register_successor (successor_type &r)
 
void remove_successor (successor_type &r)
 
bool empty ()
 
void clear ()
 

Protected Types

typedef spin_rw_mutex mutex_type
 
typedef untyped_receiver successor_type
 
typedef untyped_receiverpointer_type
 
typedef std::list< pointer_typesuccessors_type
 

Protected Attributes

mutex_type my_mutex
 
successors_type my_successors
 
sender< continue_msg > * my_owner
 

Additional Inherited Members

- Private Member Functions inherited from tbb::internal::no_copy
 no_copy ()
 Allow default construction. More...
 

Detailed Description

template<>
class tbb::flow::interface10::internal::successor_cache< continue_msg >

An abstract cache of successors, specialized to continue_msg.

Definition at line 370 of file flow_graph.h.

Member Typedef Documentation

◆ mutex_type

◆ pointer_type

◆ successor_type

◆ successors_type

Definition at line 383 of file flow_graph.h.

Constructor & Destructor Documentation

◆ successor_cache()

◆ ~successor_cache()

Definition at line 424 of file flow_graph.h.

424 {

Member Function Documentation

◆ clear()

Definition at line 454 of file flow_graph.h.

454  {
456  }
457 
459  virtual task *try_put_task(const T& t) = 0;
void const char const char int ITT_FORMAT __itt_group_sync p
static task * try_put_task_wrapper_impl(receiver< T > *const this_recv, const void *p, bool is_async)
Definition: flow_graph.h:217
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

◆ empty()

Definition at line 449 of file flow_graph.h.

449  {
451  }
452 
bool try_put(const X &t)
Put an item to the receiver.
Definition: flow_graph.h:350

◆ register_successor()

Definition at line 426 of file flow_graph.h.

435  : public internal::untyped_receiver {

◆ remove_successor()

Definition at line 434 of file flow_graph.h.

435  : public internal::untyped_receiver {
436  template< typename > friend class internal::async_storage;
437  template< typename, typename > friend struct internal::async_helpers;
438 public:
440  typedef T input_type;
441 
442  typedef typename internal::async_helpers<T>::filtered_type filtered_type;
443 
445  bool try_put( const typename internal::async_helpers<T>::filtered_type& t ) {
447  }
bool try_put(const X &t)
Put an item to the receiver.
Definition: flow_graph.h:350

◆ set_owner()

Definition at line 422 of file flow_graph.h.

422 {

Member Data Documentation

◆ my_mutex

◆ my_owner

◆ my_successors

Definition at line 384 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.