summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-04-04 21:00:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-04-04 21:00:31 (GMT)
commit02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4 (patch)
tree4b36327c0da85d62ea116da32d0f114700d0f6c9 /src/H5.c
parent7170bbbc96f2b29f42be53f8271fc359f617e09c (diff)
downloadhdf5-02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4.zip
hdf5-02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4.tar.gz
hdf5-02e4ee5edf5d1c8fe285497def5cd7b7afbf77e4.tar.bz2
[svn-r2073] Added free-list code to the library and took out the older "temporary buffer"
code, since the functionality was superceded. See the followup document for details on the free-list code.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c39
1 files changed, 38 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index 2c9839a..b2f6b06 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -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