PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::RunQuota Class Reference

#include <run_quota.hpp>

Public Member Functions

QuotaTicket reserve (QuotaObject, QuotaAmounts, std::uint64_t old_extent, std::uint64_t new_extent, QuotaStage, QuotaArtifact)
 
void release (QuotaObject, QuotaAmounts, std::uint64_t old_extent, std::uint64_t new_extent, QuotaStage, QuotaArtifact)
 
QuotaSnapshot snapshot (QuotaResource=QuotaResource::scratch_bytes)
 
QuotaSnapshot finish (QuotaResource=QuotaResource::scratch_bytes)
 
std::shared_ptr< const QuotaSnapshot > refusal () const
 
void check () const
 

Static Public Member Functions

static RunQuota from_fd (int fd, QuotaRole role=QuotaRole::worker)
 
static RunQuota from_environment ()
 

Detailed Description

Definition at line 132 of file run_quota.hpp.

Member Function Documentation

◆ from_fd()

static RunQuota pineforge::detail::RunQuota::from_fd ( int fd,
QuotaRole role = QuotaRole::worker )
static

◆ from_environment()

static RunQuota pineforge::detail::RunQuota::from_environment ( )
static

◆ reserve()

QuotaTicket pineforge::detail::RunQuota::reserve ( QuotaObject ,
QuotaAmounts ,
std::uint64_t old_extent,
std::uint64_t new_extent,
QuotaStage ,
QuotaArtifact  )

◆ release()

void pineforge::detail::RunQuota::release ( QuotaObject ,
QuotaAmounts ,
std::uint64_t old_extent,
std::uint64_t new_extent,
QuotaStage ,
QuotaArtifact  )

◆ snapshot()

QuotaSnapshot pineforge::detail::RunQuota::snapshot ( QuotaResource = QuotaResource::scratch_bytes)

◆ finish()

QuotaSnapshot pineforge::detail::RunQuota::finish ( QuotaResource = QuotaResource::scratch_bytes)

◆ refusal()

std::shared_ptr< const QuotaSnapshot > pineforge::detail::RunQuota::refusal ( ) const

◆ check()

void pineforge::detail::RunQuota::check ( ) const

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