NAME

kjb_mt_free - Free heap memory, thread-safely

SYNOPSIS

#include "l_mt/l_mt_util.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


void kjb_mt_free(void *ptr);

DESCRIPTION

This frees a block of heap memory allocated using kjb_mt_malloc, kjb_malloc, or any other libkjb memory allocation function. This works like kjb_free except that the operation is threadsafe, because it is serialized with the multithread wrapper serialization lock. Only one thread at a time therefore can free memory via this function.

RELATED

kjb_malloc, kjb_free, kjb_mt_malloc

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Andrew Predoehl

DOCUMENTER

Andrew Predoehl

SEE ALSO

kjb_mt_malloc , kjb_mt_fopen , kjb_mt_fread , kjb_mt_fwrite , kjb_mt_fprintf , kjb_mt_fclose