![]() |
AAX SDK
2.4.1
Avid Audio Extensions Development Kit
|
#include <AAX_CAtomicQueue.h>
Multi-writer, single-reader implementation of AAX_IPointerQueue
Template parameters:
T:
Type of the objects pointed to by this queueS:
Size of the queue's ring buffer. Should be a power of two less than UINT_32_MAX
Properties:
NULL
values onto the queue. Push will return eStatus_Unsupported if a NULL
value is pushed onto the queue, and the value will be ignored. Public Types | |
typedef AAX_IPointerQueue< T >::template_type | template_type |
The type used for this template instance. More... | |
typedef AAX_IPointerQueue< T >::value_type | value_type |
The type of values stored in this queue. More... | |
![]() | |
typedef T | template_type |
The type used for this template instance. More... | |
typedef T * | value_type |
The type of values stored in this queue. More... | |
![]() | |
enum | EStatus { eStatus_Success = 0 , eStatus_Overflow = 1 , eStatus_NotInitialized = 2 , eStatus_Unavailable = 3 , eStatus_Unsupported = 4 } |
Public Member Functions | |
virtual | ~AAX_CAtomicQueue () |
AAX_CAtomicQueue () | |
virtual void | Clear () |
virtual AAX_IContainer::EStatus | Push (value_type inElem) |
virtual value_type | Pop () |
virtual value_type | Peek () const |
![]() | |
virtual | ~AAX_IPointerQueue () |
![]() | |
virtual | ~AAX_IContainer () |
Static Public Attributes | |
static const size_t | template_size = S |
The size used for this template instance. More... | |
typedef AAX_IPointerQueue<T>::template_type AAX_CAtomicQueue< T, S >::template_type |
The type used for this template instance.
typedef AAX_IPointerQueue<T>::value_type AAX_CAtomicQueue< T, S >::value_type |
The type of values stored in this queue.
|
inlinevirtual |
AAX_CAtomicQueue< T, S >::AAX_CAtomicQueue | ( | ) |
|
virtual |
Implements AAX_IPointerQueue< T >.
|
virtual |
Push an element onto the queue
Call from: Write thread
Implements AAX_IPointerQueue< T >.
Referenced by AAX_CMonolithicParameters::GenerateCoefficients(), and AAX_CMonolithicParameters::StaticRenderAudio().
|
virtual |
Pop the front element from the queue
Call from: Read thread
NULL
if no element is available Implements AAX_IPointerQueue< T >.
|
virtual |
Get the current top element without popping it off of the queue
Call from: Read thread
Implements AAX_IPointerQueue< T >.
|
static |
The size used for this template instance.