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

#include <budget_policy.hpp>

Public Member Functions

 RuntimeBudgetFrame (std::uint64_t budget, RuntimeBudgetPolicy policy={}, bool overload_active=false) noexcept
RuntimeBudgetDecision evaluate (RuntimeWorkLane lane, std::uint64_t estimated_cost, bool required=false) noexcept
std::uint64_t remaining_budget () const noexcept
bool overload_active () const noexcept
const RuntimeBudgetPolicy & policy () const noexcept
const RuntimeBudgetFrameStats & stats () const noexcept
void set_overload_active (bool active) noexcept
void add_budget (std::uint64_t budget) noexcept

Constructor & Destructor Documentation

◆ RuntimeBudgetFrame()

pulp::runtime::RuntimeBudgetFrame::RuntimeBudgetFrame ( std::uint64_t budget,
RuntimeBudgetPolicy policy = {},
bool overload_active = false )
inlineexplicitnoexcept

Member Function Documentation

◆ add_budget()

void pulp::runtime::RuntimeBudgetFrame::add_budget ( std::uint64_t budget)
inlinenoexcept

◆ evaluate()

RuntimeBudgetDecision pulp::runtime::RuntimeBudgetFrame::evaluate ( RuntimeWorkLane lane,
std::uint64_t estimated_cost,
bool required = false )
inlinenoexcept

◆ overload_active()

bool pulp::runtime::RuntimeBudgetFrame::overload_active ( ) const
inlinenoexcept

◆ policy()

const RuntimeBudgetPolicy & pulp::runtime::RuntimeBudgetFrame::policy ( ) const
inlinenoexcept

◆ remaining_budget()

std::uint64_t pulp::runtime::RuntimeBudgetFrame::remaining_budget ( ) const
inlinenoexcept

◆ set_overload_active()

void pulp::runtime::RuntimeBudgetFrame::set_overload_active ( bool active)
inlinenoexcept

◆ stats()

const RuntimeBudgetFrameStats & pulp::runtime::RuntimeBudgetFrame::stats ( ) const
inlinenoexcept

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