Functions
mcore.c File Reference

Functions dealing with creating and allocating mcores. More...

#include <GKlib.h>
Include dependency graph for mcore.c:

Go to the source code of this file.

Functions

void gk_gkmcoreAdd (gk_mcore_t *mcore, int type, size_t nbytes, void *ptr)
 
gk_mcore_tgk_gkmcoreCreate ()
 
void gk_gkmcoreDel (gk_mcore_t *mcore, void *ptr)
 
void gk_gkmcoreDestroy (gk_mcore_t **r_mcore, int showstats)
 
void gk_gkmcorePop (gk_mcore_t *mcore)
 
void gk_gkmcorePush (gk_mcore_t *mcore)
 
void gk_mcoreAdd (gk_mcore_t *mcore, int type, size_t nbytes, void *ptr)
 
gk_mcore_tgk_mcoreCreate (size_t coresize)
 
void gk_mcoreDel (gk_mcore_t *mcore, void *ptr)
 
void gk_mcoreDestroy (gk_mcore_t **r_mcore, int showstats)
 
void * gk_mcoreMalloc (gk_mcore_t *mcore, size_t nbytes)
 
void gk_mcorePop (gk_mcore_t *mcore)
 
void gk_mcorePush (gk_mcore_t *mcore)
 

Detailed Description

Functions dealing with creating and allocating mcores.

Date
Started 5/30/11
Author
George
Copyright 1997-2011, Regents of the University of Minnesota
Version
Id
mcore.c 13953 2013-03-30 16:20:07Z karypis

Definition in file mcore.c.

Function Documentation

void gk_gkmcoreAdd ( gk_mcore_t mcore,
int  type,
size_t  nbytes,
void *  ptr 
)

Adds a memory allocation at the end of the list. This is the gkmcore version.

Definition at line 309 of file mcore.c.

gk_mcore_t* gk_gkmcoreCreate ( )

This function creates an mcore. This version is used for gkmcore.

Definition at line 43 of file mcore.c.

void gk_gkmcoreDel ( gk_mcore_t mcore,
void *  ptr 
)

This function deletes the mop associated with the supplied pointer. The mop has to be a heap allocation, otherwise it fails violently. This is the gkmcore version.

Definition at line 373 of file mcore.c.

void gk_gkmcoreDestroy ( gk_mcore_t **  r_mcore,
int  showstats 
)

This function destroys an mcore. This version is for gkmcore.

Definition at line 103 of file mcore.c.

void gk_gkmcorePop ( gk_mcore_t mcore)

This function frees all mops since the last push. This version is for poping the gkmcore and it uses free instead of gk_free.

Definition at line 237 of file mcore.c.

void gk_gkmcorePush ( gk_mcore_t mcore)

This function sets a marker in the stack of malloc ops to be used subsequently for freeing purposes. This is the gkmcore version.

Definition at line 187 of file mcore.c.

void gk_mcoreAdd ( gk_mcore_t mcore,
int  type,
size_t  nbytes,
void *  ptr 
)

Adds a memory allocation at the end of the list.

Definition at line 265 of file mcore.c.

gk_mcore_t* gk_mcoreCreate ( size_t  coresize)

This function creates an mcore

Definition at line 18 of file mcore.c.

void gk_mcoreDel ( gk_mcore_t mcore,
void *  ptr 
)

This function deletes the mop associated with the supplied pointer. The mop has to be a heap allocation, otherwise it fails violently.

Definition at line 345 of file mcore.c.

void gk_mcoreDestroy ( gk_mcore_t **  r_mcore,
int  showstats 
)

This function destroys an mcore.

Definition at line 67 of file mcore.c.

void* gk_mcoreMalloc ( gk_mcore_t mcore,
size_t  nbytes 
)

This function allocate space from the core/heap

Definition at line 140 of file mcore.c.

void gk_mcorePop ( gk_mcore_t mcore)

This function frees all mops since the last push

Definition at line 198 of file mcore.c.

void gk_mcorePush ( gk_mcore_t mcore)

This function sets a marker in the stack of malloc ops to be used subsequently for freeing purposes

Definition at line 175 of file mcore.c.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:32