acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
windows_common::heap_allocator Class Reference
Inheritance diagram for windows_common::heap_allocator:
heap::allocator heap::allocator_base

Public Member Functions

void initialize_allocator (::acme::acme *pacme) override
void * allocate (memsize s, ::memsize *psizeAllocated, const_char_pointer pszAnnotation=nullptr) override
void * reallocate (void *p, memsize s, const_char_pointer pszAnnotation=nullptr) override
void free (void *p) override
memsize size (void *p) override
bool has_size () const override

Public Attributes

HANDLE m_handle
::critical_section m_criticalsection
Public Attributes inherited from heap::allocator
::acme::acme * m_pacme

Friends

class ::c::malloc

Member Function Documentation

◆ allocate()

void * windows_common::heap_allocator::allocate ( memsize s,
::memsize * psizeAllocated,
const_char_pointer pszAnnotation = nullptr )
overridevirtual

Reimplemented from heap::allocator.

◆ free()

void windows_common::heap_allocator::free ( void * p)
overridevirtual

Reimplemented from heap::allocator.

◆ has_size()

bool windows_common::heap_allocator::has_size ( ) const
overridevirtual

Reimplemented from heap::allocator.

◆ initialize_allocator()

void windows_common::heap_allocator::initialize_allocator ( ::acme::acme * pacme)
overridevirtual

Reimplemented from heap::allocator.

◆ reallocate()

void * windows_common::heap_allocator::reallocate ( void * p,
memsize s,
const_char_pointer pszAnnotation = nullptr )
overridevirtual

Reimplemented from heap::allocator.

◆ size()

memsize windows_common::heap_allocator::size ( void * p)
overridevirtual

Reimplemented from heap::allocator.


The documentation for this class was generated from the following files:
  • operating_system/windows_common/heap_allocator.h
  • operating_system/windows_common/heap_allocator.cpp