memorymanag.c File Reference

#include <pthread.h>
#include <stdlib.h>
#include "memorymanag.h"
#include "output.h"

Functions

void * ergo_malloc (size_t noOfBytes)
void ergo_free (void *p)
void report_memory_status ()

Variables

static double globalNoOfBytesAllocated = 0
static int globalMallocCount = 0
static int globalFreeCount = 0
static pthread_mutex_t globalMemStatLock = PTHREAD_MUTEX_INITIALIZER

Function Documentation

void ergo_free ( void *  p  ) 

void* ergo_malloc ( size_t  noOfBytes  ) 

void report_memory_status ( void   ) 


Variable Documentation

int globalFreeCount = 0 [static]

int globalMallocCount = 0 [static]

pthread_mutex_t globalMemStatLock = PTHREAD_MUTEX_INITIALIZER [static]

double globalNoOfBytesAllocated = 0 [static]


Generated on Wed Nov 21 09:32:40 2012 for ergo by  doxygen 1.4.7