#include <stdio.h>#include <stdlib.h>#include "MercuryThreads.h"#include <map>Go to the source code of this file.
Classes | |
| class | MercuryMemoryThrough |
| [internal] Dummy class that gets created for mallocing More... | |
| struct | MInfoPair |
| [Internal] Info that is used for any given malloc or free More... | |
| class | MemoryWatchForDestroy |
| [internal] Used to determine if we're past starting main() More... | |
Functions | |
| void | MercuryAMalloc (void *ptr, const char *file, const int line) |
| void | MercuryAFree (void *ptr) |
| COND_MUTEX (MemoryMutex) | |
| void | MapFree (void *addy) |
| void | MapAlloc (void *addy, const char *file, int line, int size) |
| void | ResetAllLeakInfo () |
| void | PrintAllLeakInfo () |
| void | SetPrintOnEnd (bool POD) |
| void * | MercuryMalloc (size_t x, const char *file, int line) |
| void * | MercuryCalloc (size_t x, size_t y, const char *file, const int line) |
| void * | MercuryRealloc (void *ptr, size_t x, const char *file, const int line) |
| void | MercuryFree (void *ptr) |
Variables | |
| MercuryMemoryThrough | OVERALLFREE |
| bool | bMutexSetUp = false |
| map< void *, MInfoPair > * | AllMemoryMap = NULL |
| MemoryWatchForDestroy | DPM |
| COND_MUTEX | ( | MemoryMutex | ) |
| void MapAlloc | ( | void * | addy, | |
| const char * | file, | |||
| int | line, | |||
| int | size | |||
| ) |
Definition at line 59 of file MercuryMemory.cpp.
| void MapFree | ( | void * | addy | ) |
Definition at line 45 of file MercuryMemory.cpp.
| void MercuryAFree | ( | void * | ptr | ) |
Definition at line 152 of file MercuryMemory.cpp.
| void MercuryAMalloc | ( | void * | ptr, | |
| const char * | file, | |||
| const int | line | |||
| ) |
Definition at line 141 of file MercuryMemory.cpp.
| void* MercuryCalloc | ( | size_t | x, | |
| size_t | y, | |||
| const char * | file, | |||
| const int | line | |||
| ) |
Definition at line 126 of file MercuryMemory.cpp.
| void MercuryFree | ( | void * | ptr | ) |
Definition at line 146 of file MercuryMemory.cpp.
| void* MercuryMalloc | ( | size_t | x, | |
| const char * | file, | |||
| int | line | |||
| ) |
Definition at line 119 of file MercuryMemory.cpp.
| void* MercuryRealloc | ( | void * | ptr, | |
| size_t | x, | |||
| const char * | file, | |||
| const int | line | |||
| ) |
Definition at line 133 of file MercuryMemory.cpp.
| void PrintAllLeakInfo | ( | ) |
Definition at line 98 of file MercuryMemory.cpp.
| void ResetAllLeakInfo | ( | ) |
Definition at line 76 of file MercuryMemory.cpp.
| void SetPrintOnEnd | ( | bool | POD | ) |
Definition at line 114 of file MercuryMemory.cpp.
| map< void *, MInfoPair >* AllMemoryMap = NULL |
Definition at line 42 of file MercuryMemory.cpp.
| bool bMutexSetUp = false |
Definition at line 38 of file MercuryMemory.cpp.
Definition at line 112 of file MercuryMemory.cpp.