|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI 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 () |
Definition at line 132 of file run_quota.hpp.
|
static |
References pineforge::detail::role, and pineforge::detail::worker.
|
static |
| QuotaTicket pineforge::detail::RunQuota::reserve | ( | QuotaObject | , |
| QuotaAmounts | , | ||
| std::uint64_t | old_extent, | ||
| std::uint64_t | new_extent, | ||
| QuotaStage | , | ||
| QuotaArtifact | ) |
References pineforge::detail::new_extent, and pineforge::detail::old_extent.
| void pineforge::detail::RunQuota::release | ( | QuotaObject | , |
| QuotaAmounts | , | ||
| std::uint64_t | old_extent, | ||
| std::uint64_t | new_extent, | ||
| QuotaStage | , | ||
| QuotaArtifact | ) |
References pineforge::detail::new_extent, and pineforge::detail::old_extent.
| QuotaSnapshot pineforge::detail::RunQuota::snapshot | ( | QuotaResource | = QuotaResource::scratch_bytes | ) |
References pineforge::detail::scratch_bytes.
| QuotaSnapshot pineforge::detail::RunQuota::finish | ( | QuotaResource | = QuotaResource::scratch_bytes | ) |
References pineforge::detail::scratch_bytes.
| std::shared_ptr< const QuotaSnapshot > pineforge::detail::RunQuota::refusal | ( | ) | const |
| void pineforge::detail::RunQuota::check | ( | ) | const |