summaryrefslogtreecommitdiffstats
path: root/src/mem_pool.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-08 18:46:39 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-08 18:46:39 +0400
commitfe2efaafebe67860ec3f5b3c259208ce7db05eeb (patch)
tree7f02bbed389e4bd6e19a45e91c712887945155c5 /src/mem_pool.h
parentafe65479c0052b38e080d7d9adaeba7326823dea (diff)
downloadrspamd-fe2efaafebe67860ec3f5b3c259208ce7db05eeb.tar.gz
rspamd-fe2efaafebe67860ec3f5b3c259208ce7db05eeb.zip
* Improve performance of IO reading by reworking IO dispatcher algorithm
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r--src/mem_pool.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h
index 275da17d4..ab477a78e 100644
--- a/src/mem_pool.h
+++ b/src/mem_pool.h
@@ -14,6 +14,9 @@
#include "config.h"
+
+struct f_str_s;
+
/**
* Destructor type definition
*/
@@ -117,6 +120,14 @@ void* memory_pool_alloc0 (memory_pool_t* pool, memory_pool_ssize_t size);
char* memory_pool_strdup (memory_pool_t* pool, const char *src);
/**
+ * Make a copy of fixed string in pool as null terminated string
+ * @param pool memory pool object
+ * @param src source string
+ * @return pointer to newly created string that is copy of src
+ */
+char* memory_pool_fstrdup (memory_pool_t* pool, const struct f_str_s *src);
+
+/**
* Allocate piece of shared memory
* @param pool memory pool object
* @param size bytes to allocate