Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
A node_cache maintains a std::queue of elements of type T. Each operation is protected by a lock. More...
#include <_flow_graph_cache_impl.h>
Public Types | |
typedef size_t | size_type |
Public Member Functions | |
bool | empty () |
void | add (T &n) |
void | remove (T &n) |
void | clear () |
Protected Types | |
typedef M | mutex_type |
Protected Member Functions | |
bool | internal_empty () |
size_type | internal_size () |
void | internal_push (T &n) |
T & | internal_pop () |
Protected Attributes | |
mutex_type | my_mutex |
std::queue< T * > | my_q |
A node_cache maintains a std::queue of elements of type T. Each operation is protected by a lock.
Definition at line 30 of file _flow_graph_cache_impl.h.
|
protected |
Definition at line 89 of file _flow_graph_cache_impl.h.
typedef size_t internal::node_cache< T, M >::size_type |
Definition at line 33 of file _flow_graph_cache_impl.h.
|
inline |
Definition at line 40 of file _flow_graph_cache_impl.h.
Referenced by internal::reserving_port< T >::handle_operations(), and internal::function_input_base< Input, queueing_lightweight, cache_aligned_allocator< Input >, multifunction_input< Input, internal::wrap_tuple_elements< tbb::flow::tuple_size< tuple< Output > >::value, internal::multifunction_output, tuple< Output > >::type, queueing_lightweight, cache_aligned_allocator< Input > > >::handle_operations().
|
inline |
Definition at line 54 of file _flow_graph_cache_impl.h.
Referenced by tbb::flow::interface11::function_node< Input, Output, Policy, Allocator >::reset_node(), and internal::function_input_base< Input, queueing_lightweight, cache_aligned_allocator< Input >, multifunction_input< Input, internal::wrap_tuple_elements< tbb::flow::tuple_size< tuple< Output > >::value, internal::multifunction_output, tuple< Output > >::type, queueing_lightweight, cache_aligned_allocator< Input > > >::reset_receiver().
|
inline |
Definition at line 35 of file _flow_graph_cache_impl.h.
Referenced by internal::reserving_port< T >::handle_operations(), tbb::flow::interface11::function_node< Input, Output, Policy, Allocator >::reset_node(), internal::function_input_base< Input, queueing_lightweight, cache_aligned_allocator< Input >, multifunction_input< Input, internal::wrap_tuple_elements< tbb::flow::tuple_size< tuple< Output > >::value, internal::multifunction_output, tuple< Output > >::type, queueing_lightweight, cache_aligned_allocator< Input > > >::reset_receiver(), and internal::reserving_port< T >::reset_receiver().
|
inlineprotected |
Definition at line 97 of file _flow_graph_cache_impl.h.
Referenced by internal::node_cache< sender< T >, spin_mutex >::empty().
|
inlineprotected |
Definition at line 112 of file _flow_graph_cache_impl.h.
Referenced by internal::node_cache< sender< T >, spin_mutex >::remove().
|
inlineprotected |
Definition at line 107 of file _flow_graph_cache_impl.h.
Referenced by internal::node_cache< sender< T >, spin_mutex >::add(), and internal::node_cache< sender< T >, spin_mutex >::remove().
|
inlineprotected |
Definition at line 102 of file _flow_graph_cache_impl.h.
Referenced by internal::node_cache< sender< T >, spin_mutex >::remove().
|
inline |
Definition at line 45 of file _flow_graph_cache_impl.h.
Referenced by internal::reserving_port< T >::handle_operations(), and internal::function_input_base< Input, queueing_lightweight, cache_aligned_allocator< Input >, multifunction_input< Input, internal::wrap_tuple_elements< tbb::flow::tuple_size< tuple< Output > >::value, internal::multifunction_output, tuple< Output > >::type, queueing_lightweight, cache_aligned_allocator< Input > > >::handle_operations().
|
protected |
Definition at line 90 of file _flow_graph_cache_impl.h.
Referenced by internal::node_cache< sender< T >, spin_mutex >::add(), internal::node_cache< sender< T >, spin_mutex >::empty(), and internal::node_cache< sender< T >, spin_mutex >::remove().
|
protected |
Definition at line 91 of file _flow_graph_cache_impl.h.
Referenced by internal::node_cache< sender< T >, spin_mutex >::clear(), internal::node_cache< sender< T >, spin_mutex >::internal_empty(), internal::node_cache< sender< T >, spin_mutex >::internal_pop(), internal::node_cache< sender< T >, spin_mutex >::internal_push(), and internal::node_cache< sender< T >, spin_mutex >::internal_size().