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

Allocator state object for shared fixed 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::FixedArenaAllocator:

Public Member Functions

Allocator allocator () noexcept
 

Public Attributes

ThreadLocalFixedArenaAllocator underlying
 
std::mutex lock = {}
 

Detailed Description

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

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

Member Function Documentation

◆ allocator()

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

Member Data Documentation

◆ lock

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

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

76{};

◆ underlying

ThreadLocalFixedArenaAllocator mtcore::thread::FixedArenaAllocator::underlying

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


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