12 #ifndef DtThreadSafeQueue_H_
13 #define DtThreadSafeQueue_H_
15 #include <vlutil/vlMutex.h>
39 virtual inline void push_back( std::auto_ptr<T> elem );
42 virtual inline void push_front( std::auto_ptr<T> elem );
46 virtual inline std::auto_ptr<T>
pop();
48 virtual inline size_t size()
const;
62 #define DtThreadSafeQueue_Inl_
63 #include "vlThreadSafeQueue.inl"
64 #undef DtThreadSafeQueue_Inl_
Very simple wrapper that provides thread-safe access to a basic queue pointers.
Definition: vlThreadSafeQueue.h:28
virtual size_t size() const
virtual void push_back(std::auto_ptr< T > elem)
Push an element onto the back of the queue.
virtual std::auto_ptr< T > pop()
Pop an element from the front of the queue Returns 0 if queue is empty.
virtual ~DtThreadSafeQueue()
Dtor.
virtual void push_front(std::auto_ptr< T > elem)
Push an element onto the front of the queue.
std::deque< T * > myQueue
Data Members.
Definition: vlThreadSafeQueue.h:54
MAKRti::DtMutex myLock
Lock for critical section access.
Definition: vlThreadSafeQueue.h:57