Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::runtime::SpscQueue< T, Capacity > Class Template Reference

#include <spsc_queue.hpp>

Public Member Functions

 SpscQueue ()
bool try_push (const T &item)
bool try_push (T &&item)
bool try_pop (T &item)
std::optional< T > try_pop ()
bool empty () const
std::size_t size_approx () const
std::uint64_t overflow_count () const
void reset_overflow_count ()
SpscQueueTelemetry telemetry () const

Static Public Member Functions

static constexpr std::size_t capacity ()

Constructor & Destructor Documentation

◆ SpscQueue()

template<typename T, std::size_t Capacity>
pulp::runtime::SpscQueue< T, Capacity >::SpscQueue ( )
inline

Member Function Documentation

◆ capacity()

template<typename T, std::size_t Capacity>
constexpr std::size_t pulp::runtime::SpscQueue< T, Capacity >::capacity ( )
inlinestaticconstexpr

◆ empty()

template<typename T, std::size_t Capacity>
bool pulp::runtime::SpscQueue< T, Capacity >::empty ( ) const
inline

◆ overflow_count()

template<typename T, std::size_t Capacity>
std::uint64_t pulp::runtime::SpscQueue< T, Capacity >::overflow_count ( ) const
inline

◆ reset_overflow_count()

template<typename T, std::size_t Capacity>
void pulp::runtime::SpscQueue< T, Capacity >::reset_overflow_count ( )
inline

◆ size_approx()

template<typename T, std::size_t Capacity>
std::size_t pulp::runtime::SpscQueue< T, Capacity >::size_approx ( ) const
inline

◆ telemetry()

template<typename T, std::size_t Capacity>
SpscQueueTelemetry pulp::runtime::SpscQueue< T, Capacity >::telemetry ( ) const
inline

◆ try_pop() [1/2]

template<typename T, std::size_t Capacity>
std::optional< T > pulp::runtime::SpscQueue< T, Capacity >::try_pop ( )
inline

◆ try_pop() [2/2]

template<typename T, std::size_t Capacity>
bool pulp::runtime::SpscQueue< T, Capacity >::try_pop ( T & item)
inline

◆ try_push() [1/2]

template<typename T, std::size_t Capacity>
bool pulp::runtime::SpscQueue< T, Capacity >::try_push ( const T & item)
inline

◆ try_push() [2/2]

template<typename T, std::size_t Capacity>
bool pulp::runtime::SpscQueue< T, Capacity >::try_push ( T && item)
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/runtime/include/pulp/runtime/spsc_queue.hpp