From: Victor Julien Date: Wed, 22 Jan 2014 15:24:02 +0000 (+0100) Subject: pool: document some of the Pool:: fields. X-Git-Tag: suricata-2.0rc1~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=228d1d39800cd29792da8d6449c85b81d121208a;p=thirdparty%2Fsuricata.git pool: document some of the Pool:: fields. --- diff --git a/src/util-pool.h b/src/util-pool.h index 33f038a4e9..5ad26b4873 100644 --- a/src/util-pool.h +++ b/src/util-pool.h @@ -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 */