From d5e8872563f6fde8299db971ffb6494c2438c590 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Wed, 6 Jun 2007 10:24:23 +0200 Subject: [PATCH] documented fbpool briefly --- lib/fastbuf.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/fastbuf.h b/lib/fastbuf.h index 1020427b..09114f4c 100644 --- a/lib/fastbuf.h +++ b/lib/fastbuf.h @@ -152,9 +152,11 @@ struct fbpool { struct mempool *mp; }; -void fbpool_init(struct fbpool *fb); +void fbpool_init(struct fbpool *fb); /* Initialize a new fastbuf */ void fbpool_start(struct fbpool *fb, struct mempool *mp, uns init_size); -void *fbpool_end(struct fbpool *fb); + /* Start a new continuous block and prepare for writing (see mp_start()) */ +void *fbpool_end(struct fbpool *fb); /* Close the block and return its address (see mp_end()). + The length can be determined with mp_size(mp, ptr). */ /* FastO with atomic writes for multi-threaded programs */ -- 2.39.2