StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Buffer::Detail::BudgetAccess Struct Reference

Queue wake transport; never calls into queues under the budget mutex. More...

#include <StormByte/buffer/byte_budget.hxx>

Static Public Member Functions

static auto Event (const ByteBudget &budget) noexcept
 Capture a stored event.
static void Notify (const ByteBudget &budget) noexcept
 Publish a queue state change.
static void Wait (const ByteBudget &budget, ByteBudget::Event event, std::int64_t nanoseconds) noexcept
 Wait for state changes without holding queue locks.

Detailed Description

Queue wake transport; never calls into queues under the budget mutex.

Member Function Documentation

◆ Event()

auto StormByte::Buffer::Detail::BudgetAccess::Event ( const ByteBudget & budget)
inlinestaticnoexcept

Capture a stored event.

Parameters
budgetShared wake domain.
Returns
Event generation.

◆ Notify()

void StormByte::Buffer::Detail::BudgetAccess::Notify ( const ByteBudget & budget)
inlinestaticnoexcept

Publish a queue state change.

Parameters
budgetShared wake domain.

◆ Wait()

void StormByte::Buffer::Detail::BudgetAccess::Wait ( const ByteBudget & budget,
ByteBudget::Event event,
std::int64_t nanoseconds )
inlinestaticnoexcept

Wait for state changes without holding queue locks.

Parameters
budgetShared wake domain.
eventCaptured generation.
nanosecondsRelative wait duration.

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