Public Member Functions | Private Attributes | List of all members
ConcurrentQueue< T > Class Template Reference

#include <concurrentQueue.h>

Public Member Functions

 ConcurrentQueue ()
 
bool empty () const
 
bool pop (T &data)
 
void push (T const &data)
 
void wait_pop (T &data)
 

Private Attributes

boost::condition_variable _condition
 
boost::mutex _mutex
 
boost::circular_buffer< T > _queue
 

Detailed Description

template<typename T>
class ConcurrentQueue< T >

Definition at line 23 of file concurrentQueue.h.

Constructor & Destructor Documentation

template<typename T>
ConcurrentQueue< T >::ConcurrentQueue ( )
inline

Definition at line 30 of file concurrentQueue.h.

Member Function Documentation

template<typename T>
bool ConcurrentQueue< T >::empty ( ) const
inline

Definition at line 35 of file concurrentQueue.h.

template<typename T>
bool ConcurrentQueue< T >::pop ( T &  data)
inline

Definition at line 49 of file concurrentQueue.h.

template<typename T>
void ConcurrentQueue< T >::push ( T const &  data)
inline

Definition at line 41 of file concurrentQueue.h.

template<typename T>
void ConcurrentQueue< T >::wait_pop ( T &  data)
inline

Definition at line 61 of file concurrentQueue.h.

Member Data Documentation

template<typename T>
boost::condition_variable ConcurrentQueue< T >::_condition
private

Definition at line 28 of file concurrentQueue.h.

template<typename T>
boost::mutex ConcurrentQueue< T >::_mutex
mutableprivate

Definition at line 27 of file concurrentQueue.h.

template<typename T>
boost::circular_buffer<T> ConcurrentQueue< T >::_queue
private

Definition at line 26 of file concurrentQueue.h.


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


cob_light
Author(s): Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:39