Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::FiberStack Struct Reference

Caller-owned stack storage used by fiber contexts. More...

#include <Fibers.h>

Public Member Functions

 FiberStack (Span< char > memory)
 
bool isRuntimeOwned () const
 
Span< char > memory () const
 
size_t sizeInBytes () const
 
size_t usableSizeInBytes () const
 
size_t alignmentWasteInBytes () const
 
bool isUsable () const
 
void fillHighWaterMark ()
 
size_t highWaterUsedBytes () const
 Runtime-owned stacks expose no measurements; both high-water counters return zero.
 
size_t highWaterUnusedBytes () const
 

Static Public Member Functions

static FiberStack runtimeOwned (size_t sizeInBytes)
 Fil-C/glibc only: request a hidden runtime-owned stack, not caller storage.
 

Friends

struct FiberScheduler
 
struct FiberVirtualStack
 

Detailed Description

Caller-owned stack storage used by fiber contexts.

Member Function Documentation

◆ highWaterUsedBytes()

size_t SC::FiberStack::highWaterUsedBytes ( ) const
nodiscard

Runtime-owned stacks expose no measurements; both high-water counters return zero.

◆ runtimeOwned()

static FiberStack SC::FiberStack::runtimeOwned ( size_t sizeInBytes)
static

Fil-C/glibc only: request a hidden runtime-owned stack, not caller storage.


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