Content-type: text/html Manpage of RTMalloc

RTMalloc

Section: Chronolytix (3)
Updated: 2005-07-07
Index Return to Main Contents
 

NAME

RTMalloc - Chronolytix Memory Allocator Class  

SYNOPSYS

#include <RTMalloc.h>

void *RTMalloc(const int n);

void RTFree(void *x);

 

DESCRIPTION

RTMalloc is the Chronolytix class for allocation/deallocation of heap memory. It is 100% analogous to and interchangable with the C library malloc/free with the exception that RTMalloc calls RTFatal in the case of storage failure. Thus, the user need never check the RTMalloc return value for NULL. This represents a fatal system error within Chronolytix. In addition, RTFree marks freed memory with the magic signature RTFree also will RTLog a debug level message on an attempt free a reference counted object. An RTRefCnt_Object should use the RTRefCnt_Object_Free() method so that the destructor may be correctly called.

RTMalloc is a core Chronolytix function.  

MAGIC

Memory deallocated with RTFree  

SEE ALSO

malloc(3),free(3) RTLog(Chronolytix), RTFatal(Chronolytix), RTRefCnt_Object(Chronolytix),


 

Index

NAME
SYNOPSYS
DESCRIPTION
MAGIC
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 18:28:39 GMT, August 25, 2005