A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::CompilationBudget Class Reference

One cooperative deadline and work counter for a compilation request. More...

#include <cpp/a11/flow/limits.h>

Public Member Functions

 CompilationBudget (const CompilationLimits &limits)
 
bool Check (size_t work=1)
 
bool TryOptional (size_t work=1)
 Charge optional work without invalidating an already valid baseline.
 
bool ConsumeTokens (size_t count)
 
bool exhausted () const
 

Detailed Description

One cooperative deadline and work counter for a compilation request.

Constructor & Destructor Documentation

◆ CompilationBudget()

a11::flow::CompilationBudget::CompilationBudget ( const CompilationLimits &  limits)
inlineexplicit

Member Function Documentation

◆ Check()

bool a11::flow::CompilationBudget::Check ( size_t  work = 1)
inline

◆ ConsumeTokens()

bool a11::flow::CompilationBudget::ConsumeTokens ( size_t  count)
inline

◆ exhausted()

bool a11::flow::CompilationBudget::exhausted ( ) const
inline

◆ TryOptional()

bool a11::flow::CompilationBudget::TryOptional ( size_t  work = 1)
inline

Charge optional work without invalidating an already valid baseline.


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