ibrcommon::ThreadSafeQueue< T > Class Template Reference

#include <ThreadSafeQueue.h>

Inheritance diagram for ibrcommon::ThreadSafeQueue< T >:
ibrcommon::Conditional ibrcommon::Mutex

List of all members.

Public Member Functions

 ThreadSafeQueue ()
virtual ~ThreadSafeQueue ()
bool empty ()
size_t size ()
front ()
const T front () const
back ()
const T back () const
void push (const T &x)
void pop ()
frontpop () throw (ibrcommon::Exception)
blockingpop (size_t timeout=0) throw (ibrcommon::Exception)
void unblock () throw ()
void reset () throw ()
LockedQueue< T > LockedAccess ()

Protected Attributes

std::queue< T > _queue
bool _unblock

Detailed Description

template<class T>
class ibrcommon::ThreadSafeQueue< T >

Definition at line 40 of file ThreadSafeQueue.h.


Constructor & Destructor Documentation

template<class T>
ibrcommon::ThreadSafeQueue< T >::ThreadSafeQueue (  )  [inline]

Definition at line 43 of file ThreadSafeQueue.h.

template<class T>
virtual ibrcommon::ThreadSafeQueue< T >::~ThreadSafeQueue (  )  [inline, virtual]

Definition at line 46 of file ThreadSafeQueue.h.


Member Function Documentation

template<class T>
const T ibrcommon::ThreadSafeQueue< T >::back (  )  const [inline]

Definition at line 83 of file ThreadSafeQueue.h.

template<class T>
T ibrcommon::ThreadSafeQueue< T >::back (  )  [inline]

Definition at line 77 of file ThreadSafeQueue.h.

template<class T>
T ibrcommon::ThreadSafeQueue< T >::blockingpop ( size_t  timeout = 0  )  throw (ibrcommon::Exception) [inline]
template<class T>
bool ibrcommon::ThreadSafeQueue< T >::empty (  )  [inline]

Definition at line 50 of file ThreadSafeQueue.h.

Referenced by dtn::core::EventSwitch::componentDown().

template<class T>
const T ibrcommon::ThreadSafeQueue< T >::front (  )  const [inline]

Definition at line 70 of file ThreadSafeQueue.h.

template<class T>
T ibrcommon::ThreadSafeQueue< T >::front (  )  [inline]

Definition at line 64 of file ThreadSafeQueue.h.

template<class T>
T ibrcommon::ThreadSafeQueue< T >::frontpop (  )  throw (ibrcommon::Exception) [inline]
template<class T>
LockedQueue<T> ibrcommon::ThreadSafeQueue< T >::LockedAccess (  )  [inline]

Definition at line 154 of file ThreadSafeQueue.h.

template<class T>
void ibrcommon::ThreadSafeQueue< T >::pop (  )  [inline]

Definition at line 98 of file ThreadSafeQueue.h.

template<class T>
void ibrcommon::ThreadSafeQueue< T >::push ( const T &  x  )  [inline]
template<class T>
void ibrcommon::ThreadSafeQueue< T >::reset (  )  throw () [inline]

Definition at line 148 of file ThreadSafeQueue.h.

template<class T>
size_t ibrcommon::ThreadSafeQueue< T >::size (  )  [inline]

Definition at line 57 of file ThreadSafeQueue.h.

template<class T>
void ibrcommon::ThreadSafeQueue< T >::unblock (  )  throw () [inline]

Member Data Documentation

template<class T>
std::queue<T> ibrcommon::ThreadSafeQueue< T >::_queue [protected]
template<class T>
bool ibrcommon::ThreadSafeQueue< T >::_unblock [protected]

The documentation for this class was generated from the following file:
Generated on Mon Aug 23 08:13:03 2010 for IBR-DTNSuite by  doxygen 1.6.3