|
OgreOggSound
1.26
|
LocklessQueue template: as provid3ed by Lf3THn4D. More...
#include <LocklessQueue.h>
Public Member Functions | |
| LocklessQueue (size_t size) | |
| constructor. More... | |
| ~LocklessQueue () | |
| destructor. More... | |
| bool | push (const Type &obj) |
| push object into the queue. More... | |
| bool | empty () const |
| query status. More... | |
| bool | pop (Type &obj) |
| pop object out from the queue. More... | |
Private Attributes | |
| Type * | m_buffer |
| buffer to keep the queue. More... | |
| size_t | m_head |
| head of queue list. More... | |
| size_t | m_tail |
| tail of queue list. More... | |
| size_t | m_size |
| size of buffer. More... | |
LocklessQueue template: as provid3ed by Lf3THn4D.
| Type | Object type to queue. This is a lockless queue system to pass items from one thread to another. |
| OgreOggSound::LocklessQueue< Type >::LocklessQueue | ( | size_t | size | ) |
constructor.
| OgreOggSound::LocklessQueue< Type >::~LocklessQueue | ( | ) |
destructor.
| bool OgreOggSound::LocklessQueue< Type >::empty | ( | ) | const |
query status.
| bool OgreOggSound::LocklessQueue< Type >::pop | ( | Type & | obj | ) |
pop object out from the queue.
| bool OgreOggSound::LocklessQueue< Type >::push | ( | const Type & | obj | ) |
push object into the queue.
|
private |
buffer to keep the queue.
Referenced by OgreOggSound::LocklessQueue< OgreOggSound::OgreOggISound * >::~LocklessQueue().
|
private |
head of queue list.
Referenced by OgreOggSound::LocklessQueue< OgreOggSound::OgreOggISound * >::push().
|
private |
size of buffer.
Referenced by OgreOggSound::LocklessQueue< OgreOggSound::OgreOggISound * >::LocklessQueue().
|
private |
tail of queue list.
Referenced by OgreOggSound::LocklessQueue< OgreOggSound::OgreOggISound * >::pop().