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

A thread-safe "first N" budget: admit() returns true for the first limit calls and false afterwards, counting both. More...

#include <gpu_diagnostics.hpp>

Public Member Functions

constexpr LogTextBudget (std::uint64_t limit) noexcept
bool admit () noexcept
std::uint64_t admitted () const noexcept
std::uint64_t suppressed () const noexcept

Detailed Description

A thread-safe "first N" budget: admit() returns true for the first limit calls and false afterwards, counting both.

Constructor & Destructor Documentation

◆ LogTextBudget()

pulp::render::LogTextBudget::LogTextBudget ( std::uint64_t limit)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ admit()

bool pulp::render::LogTextBudget::admit ( )
inlinenoexcept

◆ admitted()

std::uint64_t pulp::render::LogTextBudget::admitted ( ) const
inlinenoexcept

◆ suppressed()

std::uint64_t pulp::render::LogTextBudget::suppressed ( ) const
inlinenoexcept

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