StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
byte_budget.hxx File Reference
#include <StormByte/buffer/visibility.h>
#include <StormByte/byte_size.hxx>
#include <StormByte/safe/optional.hxx>
#include <StormByte/safe/pointers.hxx>
#include <StormByte/size.hxx>
#include <StormByte/type_traits/safe.hxx>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <optional>
Include dependency graph for byte_budget.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StormByte::Buffer::AdmissionWaitObserver
 Borrowed, allocation-free observer for one synchronous PushFor call. More...
class  StormByte::Buffer::QueueLimits
 Independent local bounds; absent means unlimited, engaged zero means zero capacity. More...
struct  StormByte::Buffer::QueueSnapshot
 Coherent queue accounting; bytes are caller-supplied weights, never RSS. More...
struct  StormByte::Buffer::BudgetSnapshot
 Shared reservation counters, independent of any particular queue. More...
class  StormByte::Buffer::ByteBudget
 Shared logical byte accounting for queues and concurrent work. More...
class  StormByte::Buffer::ByteBudget::Lease
 Shared charge that can explicitly follow one payload across queues or work. More...
struct  StormByte::Buffer::Detail::BudgetAccess
 Queue wake transport; never calls into queues under the budget mutex. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte C++ suite.
namespace  StormByte::Buffer
 Buffer module of the StormByte suite.
namespace  StormByte::Buffer::Detail
 Private queue implementation contracts.

Enumerations

enum class  StormByte::Buffer::QueueStatus {
  StormByte::Buffer::Ok , StormByte::Buffer::WouldBlock , StormByte::Buffer::TooLarge , StormByte::Buffer::Closed ,
  StormByte::Buffer::Cancelled , StormByte::Buffer::Timeout , StormByte::Buffer::Missing , StormByte::Buffer::Empty ,
  StormByte::Buffer::Error , StormByte::Buffer::Invalid
}
 Admission outcomes. More...
enum class  StormByte::Buffer::AdmissionWaitReason { StormByte::Buffer::LocalCapacity , StormByte::Buffer::SharedBudget }
 Cause of a weighted admission wait, selected while admission is locked. More...

Functions

 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::QueueStatus)
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::QueueLimits)
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::QueueSnapshot)
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::BudgetSnapshot)
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::ByteBudget)
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::ByteBudget::Lease)

Function Documentation

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [1/6]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::BudgetSnapshot )

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [2/6]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::ByteBudget )

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [3/6]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::ByteBudget::Lease )

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [4/6]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::QueueLimits )

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [5/6]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::QueueSnapshot )

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [6/6]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::QueueStatus )