Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface11::internal::round_robin_cache< T, M > Class Template Reference

A cache of successors that are put in a round-robin fashion. More...

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface11::internal::round_robin_cache< T, M >:
Collaboration diagram for tbb::flow::interface11::internal::round_robin_cache< T, M >:

Public Member Functions

 round_robin_cache ()
 
size_type size ()
 
template<typename X >
tasktry_put_task (const X &t)
 
- Public Member Functions inherited from tbb::flow::interface11::internal::successor_cache< T, M >
 successor_cache ()
 
void set_owner (owner_type *owner)
 
virtual ~successor_cache ()
 
void register_successor (successor_type &r)
 
void remove_successor (successor_type &r)
 
bool empty ()
 
void clear ()
 

Private Types

typedef size_t size_type
 
typedef M mutex_type
 
typedef successor_cache< T, M >::successors_type successors_type
 

Additional Inherited Members

- Protected Types inherited from tbb::flow::interface11::internal::successor_cache< T, M >
typedef M mutex_type
 
typedef untyped_receiver successor_type
 
typedef untyped_receiverpointer_type
 
typedef untyped_sender owner_type
 
typedef std::list< pointer_typesuccessors_type
 
- Protected Attributes inherited from tbb::flow::interface11::internal::successor_cache< T, M >
mutex_type my_mutex
 
successors_type my_successors
 
owner_typemy_owner
 

Detailed Description

template<typename T, typename M = spin_rw_mutex>
class tbb::flow::interface11::internal::round_robin_cache< T, M >

A cache of successors that are put in a round-robin fashion.

Definition at line 129 of file flow_graph.h.

Member Typedef Documentation

◆ mutex_type

template<typename T, typename M = spin_rw_mutex>
typedef M tbb::flow::interface11::internal::round_robin_cache< T, M >::mutex_type
private

Definition at line 549 of file flow_graph.h.

◆ size_type

template<typename T, typename M = spin_rw_mutex>
typedef size_t tbb::flow::interface11::internal::round_robin_cache< T, M >::size_type
private

Definition at line 548 of file flow_graph.h.

◆ successors_type

template<typename T, typename M = spin_rw_mutex>
typedef successor_cache<T,M>::successors_type tbb::flow::interface11::internal::round_robin_cache< T, M >::successors_type
private

Definition at line 550 of file flow_graph.h.

Constructor & Destructor Documentation

◆ round_robin_cache()

template<typename T, typename M = spin_rw_mutex>
tbb::flow::interface11::internal::round_robin_cache< T, M >::round_robin_cache ( )
inline

Definition at line 554 of file flow_graph.h.

558 :
559  template< typename R, typename B > friend class run_and_put_task;

Member Function Documentation

◆ size()

template<typename T, typename M = spin_rw_mutex>
size_type tbb::flow::interface11::internal::round_robin_cache< T, M >::size ( )
inline

Definition at line 556 of file flow_graph.h.

558  :
559  template< typename R, typename B > friend class run_and_put_task;

◆ try_put_task()

template<typename T, typename M = spin_rw_mutex>
template<typename X >
task* tbb::flow::interface11::internal::round_robin_cache< T, M >::try_put_task ( const X &  t)
inline

Definition at line 563 of file flow_graph.h.

564  :
565  // NOTE: Following part of PUBLIC and PROTECTED sections is copy-pasted in receiver<T> under #if __TBB_PREVIEW_ASYNC_MSG
566 
568  __TBB_DEPRECATED virtual bool register_predecessor( predecessor_type & ) { return false; }
569 
571  __TBB_DEPRECATED virtual bool remove_predecessor( predecessor_type & ) { return false; }
572 
573 #if TBB_DEPRECATED_FLOW_NODE_EXTRACTION
574  __TBB_DEPRECATED typedef typename internal::edge_container<predecessor_type> built_predecessors_type;
575  __TBB_DEPRECATED typedef typename built_predecessors_type::edge_list_type predecessor_list_type;
576  __TBB_DEPRECATED virtual built_predecessors_type &built_predecessors() = 0;
577  __TBB_DEPRECATED virtual void internal_add_built_predecessor( predecessor_type & ) = 0;
578  __TBB_DEPRECATED virtual void internal_delete_built_predecessor( predecessor_type & ) = 0;
579  __TBB_DEPRECATED virtual void copy_predecessors( predecessor_list_type & ) = 0;
580  __TBB_DEPRECATED virtual size_t predecessor_count() = 0;
581 #endif /* TBB_DEPRECATED_FLOW_NODE_EXTRACTION */
582 
583 protected:
585  virtual void reset_receiver(reset_flags f = rf_reset_protocol) = 0;
586 
587  template<typename TT, typename M> friend class internal::successor_cache;
588  virtual bool is_continue_receiver() { return false; }
#define __TBB_DEPRECATED
Definition: tbb_config.h:636
An abstract cache of successors.

Referenced by tbb::flow::interface11::queue_node< T, Allocator >::try_put_and_add_task(), and tbb::flow::interface11::priority_queue_node< T, Compare, Allocator >::try_put_and_add_task().

Here is the caller graph for this function:

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.