Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
loft.hh File Reference
#include <ase/cxxaux.hh>

Go to the source code of this file.

Classes

struct  Ase::LoftFree
 A std::unique_ptr<> deleter for Loft allocations. More...
 
struct  Ase::LoftConfig
 Configuration for Loft allocations. More...
 
struct  Ase::LoftStats
 Statistics for Loft allocations. More...
 
struct  Ase::Loft::AllocatorBase
 Internal Helper. More...
 
class  Ase::Loft::Allocator< T >
 Allocator for STL containers. More...
 

Namespaces

namespace  Ase
 The Anklang C++ API namespace.
 
namespace  Ase::Loft
 Loft - A special purpose memory allocator for lock- and obstruction-free thread progress.
 

Typedefs

template<typename T >
using Ase::LoftPtr = std::unique_ptr< T, LoftFree >
 A std::unique_ptr<> for Loft allocations.
 

Enumerations

enum  Ase::Loft::Flags : size_t { PREFAULT_PAGES }
 Flags for allocator behavior. More...
 

Functions

template<class T , class ... Args>
LoftPtr< T > Ase::loft_make_unique (Args &&...args)
 Construct an object T from Loft memory, wrapped in a unique_ptr.
 

Class Documentation

◆ Ase::LoftConfig

struct Ase::LoftConfig

Configuration for Loft allocations.

Definition at line 44 of file loft.hh.

Class Members
Flags flags
size_t preallocate Amount of preallocated available memory.
size_t watermark Watermark to trigger async preallocation.

◆ Ase::LoftStats

struct Ase::LoftStats

Statistics for Loft allocations.

Definition at line 64 of file loft.hh.

Class Members
size_t allocated Memory still allocatable from Arenas.
size_t available Total number of arenas.
vector< pair< size_t, size_t > > buckets
size_t maxchunk Memory preallocated in Arenas.
size_t narenas