]> mj.ucw.cz Git - libucw.git/blobdiff - lib/eltpool.h
Implemented {mp,ep}_total_size().
[libucw.git] / lib / eltpool.h
index 7e295fb7b0d4bbaa71acb90f42fc4b386a4993cc..795a45e997dc7957519fd5118ffb852b2ad93b07 100644 (file)
@@ -17,6 +17,7 @@ struct eltpool {
   uns chunk_size;
   uns elts_per_chunk;
   uns num_allocated;           // Just for debugging
+  uns num_chunks;
 };
 
 struct eltpool_chunk {
@@ -31,6 +32,7 @@ struct eltpool_free {
 struct eltpool *ep_new(uns elt_size, uns elts_per_chunk);
 void ep_delete(struct eltpool *pool);
 void *ep_alloc_slow(struct eltpool *pool);
+u64 ep_total_size(struct eltpool *pool);
 
 static inline void *
 ep_alloc(struct eltpool *pool)