diff options
Diffstat (limited to 'src/H5.c')
-rw-r--r-- | src/H5.c | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -22,6 +22,7 @@ static char RcsId[] = "@(#)$Revision$"; #include <H5Bprivate.h> /*B-link trees */ #include <H5Eprivate.h> /*error handling */ #include <H5FDprivate.h> /*file driver */ +#include <H5FLprivate.h> /*Free Lists */ #include <H5Iprivate.h> /*atoms */ #include <H5MMprivate.h> /*memory management */ #include <H5Pprivate.h> /*property lists */ @@ -164,10 +165,10 @@ H5_term_library(void) pending += DOWN(F); pending += DOWN(FD); pending += DOWN(D); - pending += DOWN(TB); pending += DOWN(Z); pending += DOWN(RA); pending += DOWN(G); + pending += DOWN(FL); pending += DOWN(R); pending += DOWN(S); pending += DOWN(TN); @@ -224,6 +225,42 @@ H5dont_atexit(void) /*------------------------------------------------------------------------- + * Function: H5garbage_collect + * + * Purpose: Walks through all the garbage collection routines for the + * library, which are supposed to free any unused memory they have + * allocated. + * + * These should probably be registered dynamicly in a linked list of + * functions to call, but there aren't that many right now, so we + * hard-wire them... + * + * Return: Success: non-negative + * + * Failure: negative + * + * Programmer: Quincey Koziol + * Saturday, March 11, 2000 + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +herr_t +H5garbage_collect(void) +{ + herr_t ret_value = SUCCEED; + + FUNC_ENTER(H5garbage_collect, FAIL); + + /* Call the garbage collection routines in the library */ + H5FL_garbage_coll(); + + FUNC_LEAVE(ret_value); +} /* end H5garbage_collect() */ + + +/*------------------------------------------------------------------------- * Function: H5_debug_mask * * Purpose: Set runtime debugging flags according to the string S. The |