MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::thread::DynamicArenaAllocator Struct Reference

Allocator state object for shared dynamic arena allocation Must live longer (and at the same memory address) than all allocators returned by allocator() More...

#include <alloc.hpp>

Collaboration diagram for mtcore::thread::DynamicArenaAllocator:

Public Member Functions

Allocator allocator () noexcept
 

Public Attributes

ThreadLocalDynamicArenaAllocator underlying
 
std::mutex lock = {}
 

Detailed Description

Allocator state object for shared dynamic arena allocation Must live longer (and at the same memory address) than all allocators returned by allocator()

Definition at line 41 of file thread/mtcore_thread/alloc.hpp.

Member Function Documentation

◆ allocator()

Allocator mtcore::thread::DynamicArenaAllocator::allocator ( )
noexcept
Returns
Allocator VTable that can be passed to functions which allocator

Member Data Documentation

◆ lock

std::mutex mtcore::thread::DynamicArenaAllocator::lock = {}

Definition at line 43 of file thread/mtcore_thread/alloc.hpp.

43{};

◆ underlying

ThreadLocalDynamicArenaAllocator mtcore::thread::DynamicArenaAllocator::underlying

Definition at line 42 of file thread/mtcore_thread/alloc.hpp.


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