Public Member Functions | List of all members
LockfreeQueue< ElementType > Class Template Reference

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...
 

Detailed Description

template<class ElementType>
class hise::LockfreeQueue< ElementType >

A wrapper around moodycamels ReaderWriterQueue with more JUCE like interface and some assertions.

Member Function Documentation

bool callEveryElementInQueue ( )
inline

If the type of the queue is callable, this will call all functions in the queue.

bool callForEveryElementInQueue ( const ElementFunction &  f)
inline

Iterates over the queue, calls the given function for every element and removes it.

bool pop ( ElementType &  newElement)
inline

Removes an element and returns false if the queue is empty.

bool push ( const ElementType &  newElement)
inline

Adds an element to the queue.

If it fails because the queue is full, it throws an assertion and return false.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.