Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface11::internal::broadcast_cache< T, M > Class Template Reference

A cache of successors that are broadcast to. More...

#include <flow_graph.h>

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

Public Member Functions

 broadcast_cache ()
 
template<typename X >
tasktry_put_task (const X &t)
 
template<typename X >
bool gather_successful_try_puts (const X &t, task_list &tasks)
 
- 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 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::broadcast_cache< T, M >

A cache of successors that are broadcast to.

Definition at line 127 of file flow_graph.h.

Member Typedef Documentation

◆ mutex_type

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

Definition at line 467 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::broadcast_cache< T, M >::successors_type
private

Definition at line 468 of file flow_graph.h.

Constructor & Destructor Documentation

◆ broadcast_cache()

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

Definition at line 472 of file flow_graph.h.

Member Function Documentation

◆ gather_successful_try_puts()

template<typename T, typename M = spin_rw_mutex>
template<typename X >
bool tbb::flow::interface11::internal::broadcast_cache< T, M >::gather_successful_try_puts ( const X &  t,
task_list tasks 
)
inline

Definition at line 511 of file flow_graph.h.

Referenced by tbb::flow::interface11::async_node< Input, Output, Policy, Allocator >::try_put_impl().

512  { return false; }
513 
515  virtual bool try_reserve( T & ) { return false; }
516 
518  virtual bool try_release( ) { return false; }
519 
521  virtual bool try_consume( ) { return false; }
522 
523 #if TBB_DEPRECATED_FLOW_NODE_EXTRACTION
524  __TBB_DEPRECATED typedef typename internal::edge_container<successor_type> built_successors_type;
526  __TBB_DEPRECATED typedef typename built_successors_type::edge_list_type successor_list_type;
527  __TBB_DEPRECATED virtual built_successors_type &built_successors() = 0;
528  __TBB_DEPRECATED virtual void internal_add_built_successor( successor_type & ) = 0;
529  __TBB_DEPRECATED virtual void internal_delete_built_successor( successor_type & ) = 0;
530  __TBB_DEPRECATED virtual void copy_successors( successor_list_type &) = 0;
531  __TBB_DEPRECATED virtual size_t successor_count() = 0;
532 #endif /* TBB_DEPRECATED_FLOW_NODE_EXTRACTION */
533 }; // class sender<T>
534 
536 template< typename T >
537 class receiver {
538 public:
540  __TBB_DEPRECATED typedef T input_type;
541 
#define __TBB_DEPRECATED
Definition: tbb_config.h:636
Here is the caller graph for this function:

◆ try_put_task()

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

Definition at line 477 of file flow_graph.h.

Referenced by tbb::flow::interface11::input_node< Output >::apply_body_bypass(), tbb::flow::interface11::source_node< Output >::apply_body_bypass(), and tbb::flow::interface11::limiter_node< T, DecrementType >::forward_task().

479  :
480  virtual task* try_put_task_wrapper( const void *p, bool is_async ) __TBB_override {
482  }
483 
485  virtual task *try_put_task(const T& t) = 0;
486 
487 }; // class receiver<T>
488 
489 #else // __TBB_PREVIEW_ASYNC_MSG
490 
492 template< typename T >
493 class sender {
494 public:
496  __TBB_DEPRECATED typedef T output_type;
497 
499  __TBB_DEPRECATED typedef receiver<T> successor_type;
500 
501  virtual ~sender() {}
502 
503  // NOTE: Following part of PUBLIC section is partly copy-pasted in sender<T> under #if __TBB_PREVIEW_ASYNC_MSG
504 
506  __TBB_DEPRECATED virtual bool register_successor( successor_type &r ) = 0;
#define __TBB_DEPRECATED
Definition: tbb_config.h:636
static task * try_put_task_wrapper_impl(receiver< T > *const this_recv, const void *p, bool is_async)
Definition: flow_graph.h:244
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
#define __TBB_override
Definition: tbb_stddef.h:240
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.