Audacity 3.2.0
|
#include <LockFreeQueue.h>
Public Member Functions | |
LockFreeQueue (size_t maxLen) | |
~LockFreeQueue () | |
bool | Put (const T &msg) |
bool | Get (T &msg) |
void | Clear () |
Private Attributes | |
NonInterfering< std::atomic< size_t > > | mStart { 0 } |
NonInterfering< std::atomic< size_t > > | mEnd { 0 } |
const size_t | mBufferSize |
ArrayOf< T > | mBuffer { mBufferSize } |
Additional Inherited Members | |
Static Public Member Functions inherited from SharedNonInterfering< LockFreeQueue< T > > | |
static std::shared_ptr< LockFreeQueue< T > > | make_shared (Args &&...args) |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson Moved from MeterPanel.h
Definition at line 20 of file LockFreeQueue.h.
|
explicit |
Definition at line 41 of file LockFreeQueue.h.
References LockFreeQueue< T >::Clear().
LockFreeQueue< T >::~LockFreeQueue |
Definition at line 48 of file LockFreeQueue.h.
void LockFreeQueue< T >::Clear |
Definition at line 52 of file LockFreeQueue.h.
Referenced by LockFreeQueue< T >::LockFreeQueue().
bool LockFreeQueue< T >::Get | ( | T & | msg | ) |
Definition at line 83 of file LockFreeQueue.h.
References details::end().
bool LockFreeQueue< T >::Put | ( | const T & | msg | ) |
Definition at line 60 of file LockFreeQueue.h.
References details::end().
|
private |
Definition at line 37 of file LockFreeQueue.h.
|
private |
Definition at line 36 of file LockFreeQueue.h.
|
private |
Definition at line 34 of file LockFreeQueue.h.
|
private |
Definition at line 34 of file LockFreeQueue.h.