diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-10-26 07:14:48 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-10-26 07:14:48 +0300 |
commit | cc5343692b448c27485a24ea7f1b24d714bb82f6 (patch) | |
tree | d659a1795fad4da55e18c8fc6297233d5b71b57e /mem_pool.h | |
parent | c52d0879cc03345a6c41c724db6a3de59cca7d07 (diff) | |
download | rspamd-cc5343692b448c27485a24ea7f1b24d714bb82f6.tar.gz rspamd-cc5343692b448c27485a24ea7f1b24d714bb82f6.zip |
* Add determining page size function to mem_pool library
* Add simple statistic structure that is placed in shared memory and used for gathering server's stats
Diffstat (limited to 'mem_pool.h')
-rw-r--r-- | mem_pool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mem_pool.h b/mem_pool.h index 70678e9fc..4027b5de2 100644 --- a/mem_pool.h +++ b/mem_pool.h @@ -53,6 +53,9 @@ void memory_pool_delete (memory_pool_t* pool); void memory_pool_stat (memory_pool_stat_t *st); +/* Get optimal pool size based on page size for this system */ +size_t memory_pool_get_size (); + #define memory_pool_free(x) ((x)->len - ((x)->pos - (x)->begin)) #endif |