]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pool: document some of the Pool:: fields.
authorVictor Julien <victor@inliniac.net>
Wed, 22 Jan 2014 15:24:02 +0000 (16:24 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 22 Jan 2014 15:49:02 +0000 (16:49 +0100)
src/util-pool.h

index 33f038a4e93945e15fad247dacdb35e9bc8f5379..5ad26b4873bacb1f24b2641f40fac7074442e7a4 100644 (file)
@@ -43,7 +43,8 @@ typedef struct PoolBucket_ {
 typedef struct Pool_ {
     uint32_t max_buckets;
     uint32_t preallocated;
-    uint32_t allocated;
+    uint32_t allocated;         /**< counter of data elements, both currently in
+                                 *   the pool and outside of it (outstanding) */
 
     uint32_t alloc_list_size;
 
@@ -64,8 +65,9 @@ typedef struct Pool_ {
     void (*Free)(void *);
 
     uint32_t elt_size;
-    uint32_t outstanding;
-    uint32_t max_outstanding;
+    uint32_t outstanding;       /**< counter of data items 'in use'. Pretty much
+                                 *   the diff between PoolGet and PoolReturn */
+    uint32_t max_outstanding;   /**< max value of outstanding we saw */
 } Pool;
 
 /* prototypes */