aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-11-26 19:31:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-11-26 19:31:26 +0300
commit4c758549545a91b2088678d8ba6ba5cf3e92d6ac (patch)
tree7c8cd614fd57826ce696ee028963ad27e444ad5a /src/mem_pool.h
parent62cdcc73c4f817516cbcb20e9e5bfad556bea4b7 (diff)
downloadrspamd-4c758549545a91b2088678d8ba6ba5cf3e92d6ac.tar.gz
rspamd-4c758549545a91b2088678d8ba6ba5cf3e92d6ac.zip
* Add simple locking interface to mem_pool library
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r--src/mem_pool.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h
index 4027b5de2..22388df70 100644
--- a/src/mem_pool.h
+++ b/src/mem_pool.h
@@ -49,7 +49,10 @@ void memory_pool_add_destructor (memory_pool_t *pool, pool_destruct_func func, v
void* memory_pool_alloc_shared (memory_pool_t *pool, size_t size);
void memory_pool_lock_shared (memory_pool_t *pool, void *pointer);
void memory_pool_unlock_shared (memory_pool_t *pool, void *pointer);
-void memory_pool_delete (memory_pool_t* pool);
+void memory_pool_delete (memory_pool_t *pool);
+gint* memory_pool_get_mutex (memory_pool_t *pool);
+void memory_pool_lock_mutex (gint *mutex);
+void memory_pool_unlock_mutex (gint *mutex);
void memory_pool_stat (memory_pool_stat_t *st);