libt3widget
List of all members | Public Member Functions | Protected Attributes
t3_widget::item_buffer_t< T > Class Template Reference

Class implmementing a mutex-protected queue of items. More...

Public Member Functions

pop_front (void)
 Retrieve and remove the item at the front of the queue. More...
 
void push_back (T item)
 Append an item to the list. More...
 

Protected Attributes

thread::condition_variable cond
 The condition variable used to signal addition to the #keys list. More...
 
std::deque< T > items
 The list of item symbols. More...
 
thread::mutex lock
 The mutex used for the critical section. More...
 

Detailed Description

template<class T>
class t3_widget::item_buffer_t< T >

Class implmementing a mutex-protected queue of items.

Member Function Documentation

template<class T>
T t3_widget::item_buffer_t< T >::pop_front ( void  )
inline

Retrieve and remove the item at the front of the queue.

template<class T>
void t3_widget::item_buffer_t< T >::push_back ( item)
inline

Append an item to the list.

Member Data Documentation

template<class T>
thread::condition_variable t3_widget::item_buffer_t< T >::cond
protected

The condition variable used to signal addition to the #keys list.

template<class T>
std::deque<T> t3_widget::item_buffer_t< T >::items
protected

The list of item symbols.

template<class T>
thread::mutex t3_widget::item_buffer_t< T >::lock
protected

The mutex used for the critical section.