All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kzc_memory_common.h File Reference

Core memory manager base definitions and functions. More...

Macros

#define MEMORY_MANAGER_DEBUG_PARAM_PRIVATE(x)
 If defined, the following memory debugging features are enabled: More...
 

Enumerations

enum  KzcMemoryManagerType { KZC_MEMORY_MANAGER_TYPE_SYSTEM, KZC_MEMORY_MANAGER_TYPE_POOLED, KZC_MEMORY_MANAGER_TYPE_QUICK, KZC_MEMORY_MANAGER_TYPE_CUSTOM }
 Type of a memory manager. More...
 

Detailed Description

Core memory manager base definitions and functions.

Copyright 2008-2020 by Rightware. All rights reserved.

Macro Definition Documentation

#define MEMORY_MANAGER_DEBUG_PARAM_PRIVATE (   x)

If defined, the following memory debugging features are enabled:

  • Memory allocations are tracked with string descriptions. This uses some extra memory.
  • Guard data is written and checked in the beginning and end of allocated memory. This also uses more memory and reduces performance slightly.
  • Checks that memory managers are invoked only on the thread that created them.

This macro is used to add description parameter for memory management functions.

Enumeration Type Documentation

Type of a memory manager.

Enumerator
KZC_MEMORY_MANAGER_TYPE_SYSTEM 

System memory manager.

KZC_MEMORY_MANAGER_TYPE_POOLED 

Pooled memory manager.

KZC_MEMORY_MANAGER_TYPE_QUICK 

Quick memory manager.

KZC_MEMORY_MANAGER_TYPE_CUSTOM 

Custom memory manager.