Intel(R) Threading Building Blocks Doxygen Documentation version 4.2.3
|
A cache of predecessors that only supports try_get. More...
#include <_flow_graph_cache_impl.h>
Public Types | |
typedef M | mutex_type |
typedef T | output_type |
typedef sender< output_type > | predecessor_type |
typedef receiver< output_type > | successor_type |
![]() | |
typedef size_t | size_type |
Public Member Functions | |
predecessor_cache () | |
void | set_owner (successor_type *owner) |
bool | get_item (output_type &v) |
void | reset () |
![]() | |
bool | empty () |
void | add (T &n) |
void | remove (T &n) |
void | clear () |
Protected Attributes | |
successor_type * | my_owner |
![]() | |
mutex_type | my_mutex |
std::queue< T * > | my_q |
Additional Inherited Members | |
![]() | |
typedef M | mutex_type |
![]() | |
bool | internal_empty () |
size_type | internal_size () |
void | internal_push (T &n) |
T & | internal_pop () |
A cache of predecessors that only supports try_get.
Definition at line 126 of file _flow_graph_cache_impl.h.
typedef M internal::predecessor_cache< T, M >::mutex_type |
Definition at line 129 of file _flow_graph_cache_impl.h.
typedef T internal::predecessor_cache< T, M >::output_type |
Definition at line 130 of file _flow_graph_cache_impl.h.
typedef sender<output_type> internal::predecessor_cache< T, M >::predecessor_type |
Definition at line 135 of file _flow_graph_cache_impl.h.
typedef receiver<output_type> internal::predecessor_cache< T, M >::successor_type |
Definition at line 136 of file _flow_graph_cache_impl.h.
|
inline |
Definition at line 139 of file _flow_graph_cache_impl.h.
|
inline |
Definition at line 143 of file _flow_graph_cache_impl.h.
References internal::node_cache< T, M >::add(), internal::node_cache< T, M >::internal_empty(), internal::node_cache< T, M >::internal_pop(), lock, internal::node_cache< T, M >::my_mutex, and internal::predecessor_cache< T, M >::my_owner.
Referenced by internal::function_input_base< Input, Policy, A, ImplType >::perform_queued_requests().
|
inline |
Definition at line 173 of file _flow_graph_cache_impl.h.
References internal::node_cache< T, M >::internal_empty(), internal::node_cache< T, M >::internal_pop(), and internal::predecessor_cache< T, M >::my_owner.
Referenced by internal::function_input_base< Input, Policy, A, ImplType >::reset_receiver().
|
inline |
Definition at line 141 of file _flow_graph_cache_impl.h.
References internal::predecessor_cache< T, M >::my_owner.
Referenced by internal::function_input_base< Input, Policy, A, ImplType >::function_input_base(), internal::function_input_base< Input, Policy, A, ImplType >::function_input_base(), internal::reserving_port< T >::reserving_port(), and internal::reserving_port< T >::reserving_port().
|
protected |
Definition at line 191 of file _flow_graph_cache_impl.h.
Referenced by internal::predecessor_cache< T, M >::get_item(), internal::predecessor_cache< T, M >::reset(), and internal::predecessor_cache< T, M >::set_owner().