BRE12
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
internal::node_cache< T, M > Class Template Reference

A node_cache maintains a std::queue of elements of type T. Each operation is protected by a lock. More...

#include <_flow_graph_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
 

Detailed Description

template<typename T, typename M = spin_mutex>
class internal::node_cache< T, M >

A node_cache maintains a std::queue of elements of type T. Each operation is protected by a lock.


The documentation for this class was generated from the following file: