Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::audio::SampleMemoryGovernorHandle Class Reference

Copyable lifetime-safe reservation/stats endpoint. More...

#include <sample_memory_governor.hpp>

Public Member Functions

 SampleMemoryGovernorHandle ()=default
 operator bool () const noexcept
bool prepared () const noexcept
SampleMemoryReserveResult reserve (SampleMemoryCategory category, std::uint64_t bytes) const noexcept
SampleMemoryGovernorStats stats () const noexcept
bool issued (const SampleMemoryLease &lease) const noexcept
SampleMemoryGovernorEpoch epoch () const noexcept

Friends

class SampleMemoryGovernor

Detailed Description

Copyable lifetime-safe reservation/stats endpoint.

Handles keep the shared accounting state alive without borrowing the SampleMemoryGovernor facade.

Constructor & Destructor Documentation

◆ SampleMemoryGovernorHandle()

pulp::audio::SampleMemoryGovernorHandle::SampleMemoryGovernorHandle ( )
default

Member Function Documentation

◆ epoch()

SampleMemoryGovernorEpoch pulp::audio::SampleMemoryGovernorHandle::epoch ( ) const
inlinenoexcept

◆ issued()

bool pulp::audio::SampleMemoryGovernorHandle::issued ( const SampleMemoryLease & lease) const
inlinenoexcept

◆ operator bool()

pulp::audio::SampleMemoryGovernorHandle::operator bool ( ) const
inlineexplicitnoexcept

◆ prepared()

bool pulp::audio::SampleMemoryGovernorHandle::prepared ( ) const
inlinenoexcept

◆ reserve()

SampleMemoryReserveResult pulp::audio::SampleMemoryGovernorHandle::reserve ( SampleMemoryCategory category,
std::uint64_t bytes ) const
inlinenoexcept

◆ stats()

SampleMemoryGovernorStats pulp::audio::SampleMemoryGovernorHandle::stats ( ) const
inlinenoexcept

◆ SampleMemoryGovernor

friend class SampleMemoryGovernor
friend

The documentation for this class was generated from the following file: