![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Very simple wrapper that provides thread-safe access to a basic queue pointers. More...
Inheritance diagram for DtThreadSafeQueue< T >:
Collaboration diagram for DtThreadSafeQueue< T >:Public Member Functions | |
| DtThreadSafeQueue () | |
| Ctor. More... | |
| virtual | ~DtThreadSafeQueue () |
| Dtor. More... | |
| virtual void | push_back (std::auto_ptr< T > elem) |
| Push an element onto the back of the queue. More... | |
| virtual void | push_front (std::auto_ptr< T > elem) |
| Push an element onto the front of the queue. More... | |
| virtual std::auto_ptr< T > | pop () |
| Pop an element from the front of the queue Returns 0 if queue is empty. More... | |
| virtual size_t | size () const |
Protected Attributes | |
| std::deque< T * > | myQueue |
| Data Members. More... | |
| MAKRti::DtMutex | myLock |
| Lock for critical section access. More... | |
Very simple wrapper that provides thread-safe access to a basic queue pointers.
Queue always assumes ownership of pointed to objects. This implies that when the queue is deleted all objects on the queue are deleted as well. This also implies that this queue may not be used to store arrays.
| DtThreadSafeQueue< T >::DtThreadSafeQueue | ( | ) |
Ctor.
|
virtual |
Dtor.
|
inlinevirtual |
Pop an element from the front of the queue Returns 0 if queue is empty.
|
inlinevirtual |
Push an element onto the back of the queue.
|
inlinevirtual |
Push an element onto the front of the queue.
|
inlinevirtual |
|
mutableprotected |
Lock for critical section access.
|
protected |
Data Members.