summaryrefslogtreecommitdiff
path: root/lib/pool_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pool_alloc.h')
-rw-r--r--lib/pool_alloc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/pool_alloc.h b/lib/pool_alloc.h
index 3d095634..e9a5da4f 100644
--- a/lib/pool_alloc.h
+++ b/lib/pool_alloc.h
@@ -9,12 +9,13 @@ typedef void *alloc_pool_t;
alloc_pool_t pool_create(size_t size, size_t quantum, void (*bomb)(const char *), int flags);
void pool_destroy(alloc_pool_t pool);
-void *pool_alloc(alloc_pool_t pool, size_t size, const char *bomb);
+void *pool_alloc(alloc_pool_t pool, size_t size, const char *bomb_msg);
void pool_free(alloc_pool_t pool, size_t size, void *addr);
+void pool_free_old(alloc_pool_t pool, void *addr);
+void *pool_boundary(alloc_pool_t pool, size_t size);
-#define pool_talloc(pool, type, count, bomb) \
- ((type *)pool_alloc(pool, sizeof(type) * count, bomb))
+#define pool_talloc(pool, type, count, bomb_msg) \
+ ((type *)pool_alloc(pool, sizeof(type) * count, bomb_msg))
#define pool_tfree(pool, type, count, addr) \
(pool_free(pool, sizeof(type) * count, addr))
-