A simple thread safe queue. More...
#include <SGQueue.hxx>
Public Member Functions | |
| SGLockedQueue () | |
| Create a new SGLockedQueue object. | |
| ~SGLockedQueue () | |
| Destroy this object. | |
| virtual bool | empty () |
| Returns whether this queue is empty (contains no elements). | |
| virtual void | push (const T &item) |
| Add an item to the end of the queue. | |
| virtual T | front () |
| View the item from the head of the queue. | |
| virtual T | pop () |
| Get an item from the head of the queue. | |
| virtual size_t | size () |
| Query the size of the queue. | |
A simple thread safe queue.
All access functions are guarded with a mutex.
Definition at line 78 of file SGQueue.hxx.
| virtual bool SGLockedQueue< T, SGLOCK >::empty | ( | ) | [inline, virtual] |
Returns whether this queue is empty (contains no elements).
Implements SGQueue< T >.
Definition at line 97 of file SGQueue.hxx.
| virtual T SGLockedQueue< T, SGLOCK >::front | ( | ) | [inline, virtual] |
View the item from the head of the queue.
Implements SGQueue< T >.
Definition at line 117 of file SGQueue.hxx.
| virtual T SGLockedQueue< T, SGLOCK >::pop | ( | ) | [inline, virtual] |
Get an item from the head of the queue.
Implements SGQueue< T >.
Definition at line 129 of file SGQueue.hxx.
| virtual void SGLockedQueue< T, SGLOCK >::push | ( | const T & | item | ) | [inline, virtual] |
Add an item to the end of the queue.
| T | object to add. |
Implements SGQueue< T >.
Definition at line 107 of file SGQueue.hxx.
| virtual size_t SGLockedQueue< T, SGLOCK >::size | ( | ) | [inline, virtual] |
Query the size of the queue.
Implements SGQueue< T >.
Definition at line 148 of file SGQueue.hxx.
1.6.1