iPlug2 - C++ Audio Plug-in Framework
|
A lock-free SPSC queue used to transfer data between threads based on MLQueue.h by Randy Jones based on https://kjellkod.wordpress.com/2012/11/28/c-debt-paid-in-full-wait-free-lock-free-queue/. More...
#include <IPlugQueue.h>
Public Member Functions | |
IPlugQueue (int size) | |
IPlugQueue constructor. More... | |
IPlugQueue (const IPlugQueue &)=delete | |
IPlugQueue & | operator= (const IPlugQueue &)=delete |
void | Resize (int size) |
bool | Push (const T &item) |
bool | Pop (T &item) |
size_t | ElementsAvailable () const |
const T & | Peek () |
bool | WasEmpty () const |
bool | WasFull () const |
A lock-free SPSC queue used to transfer data between threads based on MLQueue.h by Randy Jones based on https://kjellkod.wordpress.com/2012/11/28/c-debt-paid-in-full-wait-free-lock-free-queue/.
Definition at line 29 of file IPlugQueue.h.
|
inline |
IPlugQueue constructor.
size |
Definition at line 34 of file IPlugQueue.h.
Referenced by IPlugQueue< ISenderData< MAXNC, T > >::IPlugQueue().
|
inline |
|
inline |
Can be used like while IPlugQueue.ElementsAvailable() && q.peek().mTime < 100 { elem = q.pop() ... }
Definition at line 95 of file IPlugQueue.h.
|
inline |
|
inline |
item |
Definition at line 55 of file IPlugQueue.h.
Referenced by IPlugAPIBase::HostSpecificInit(), and IPlugAPP::SendSysEx().
|
inline |
size |
Definition at line 46 of file IPlugQueue.h.
Referenced by IPlugQueue< ISenderData< MAXNC, T > >::IPlugQueue().
|
inline |
|
inline |