A wrapper around moodycamels ReaderWriterQueue with more JUCE like interface and some assertions. More...
Public Member Functions | |
bool | callEveryElementInQueue () |
If the type of the queue is callable, this will call all functions in the queue. More... | |
bool | callForEveryElementInQueue (const ElementFunction &f) |
Iterates over the queue, calls the given function for every element and removes it. More... | |
bool | pop (ElementType &newElement) |
Removes an element and returns false if the queue is empty. More... | |
bool | push (const ElementType &newElement) |
Adds an element to the queue. More... | |
A wrapper around moodycamels ReaderWriterQueue with more JUCE like interface and some assertions.
|
inline |
If the type of the queue is callable, this will call all functions in the queue.
|
inline |
Iterates over the queue, calls the given function for every element and removes it.
|
inline |
Removes an element and returns false if the queue is empty.
|
inline |
Adds an element to the queue.
If it fails because the queue is full, it throws an assertion and return false.