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

Allocator state object for shared debug 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::DebugAllocator:

Public Member Functions

Allocator allocator () noexcept
 

Public Attributes

ThreadLocalDebugAllocator underlying
 
std::mutex lock = {}
 

Detailed Description

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

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

Member Function Documentation

◆ allocator()

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

Member Data Documentation

◆ lock

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

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

132{};

◆ underlying

ThreadLocalDebugAllocator mtcore::thread::DebugAllocator::underlying

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


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