OSSP CVS Repository

ossp - Difference in ossp-pkg/mm/mm_alloc.c versions 1.23 and 1.24
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/mm/mm_alloc.c 1.23 -> 1.24

--- mm_alloc.c   2006/06/10 21:12:35     1.23
+++ mm_alloc.c   2006/06/10 21:25:54     1.24
@@ -98,6 +98,19 @@
 }
 
 /*
+ * Reset a memory pool.
+ */
+void mm_reset(MM *mm)
+{
+    if (mm == NULL)
+        return;
+    mm->mp_offset = SIZEOF_mem_pool;
+    mm->mp_freechunks.mc_usize = 0;
+    mm->mp_freechunks.mc_u.mc_next = NULL;
+    return;
+}
+
+/*
  * Destroy a memory pool
  */
 void mm_destroy(MM *mm)

CVSTrac 2.0.1