VST 3 SDK VST 3.7
SDK for developing VST plug-in
|
Ringbuffer. More...
#include <ringbuffer.h>
Public Member Functions | |
RingBuffer (size_t initialNumberOfItems=0) noexcept | |
Default constructor. More... | |
size_t | size () const noexcept |
size More... | |
void | resize (size_t newNumberOfItems) noexcept |
resize More... | |
bool | push (ItemT &&item) noexcept |
push a new item into the ringbuffer More... | |
bool | push (const ItemT &item) noexcept |
push a new item into the ringbuffer More... | |
bool | pop (ItemT &item) noexcept |
pop an item out of the ringbuffer More... | |
Ringbuffer.
A ringbuffer supporting one reader and one writer thread
|
inlinenoexcept |
Default constructor.
initialNumberOfItems | initial ring buffer size |
|
inlinenoexcept |
size
|
inlinenoexcept |
resize
note that you have to make sure that no other thread is reading or writing while calling this method
newNumberOfItems | resize buffer |
|
inlinenoexcept |
push a new item into the ringbuffer
item | to push |
|
inlinenoexcept |
push a new item into the ringbuffer
item | to push |
|
inlinenoexcept |
pop an item out of the ringbuffer
item |