aboutsummaryrefslogtreecommitdiffstats
path: root/src/roll_history.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-20 08:16:49 -0700
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-20 08:16:49 -0700
commitad837700b86153be3587672124ee663c964f0f15 (patch)
tree7ec6e8fbe539a169d501a3d1767644b68fab2dab /src/roll_history.c
parentbaeb17562f47dc31610c0f65079c45a7e6ad44bb (diff)
downloadrspamd-ad837700b86153be3587672124ee663c964f0f15.tar.gz
rspamd-ad837700b86153be3587672124ee663c964f0f15.zip
Refactor memory pool naming.
Diffstat (limited to 'src/roll_history.c')
-rw-r--r--src/roll_history.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/roll_history.c b/src/roll_history.c
index b189e12d6..1ffa9240f 100644
--- a/src/roll_history.c
+++ b/src/roll_history.c
@@ -34,7 +34,7 @@
* @return new structure
*/
struct roll_history*
-rspamd_roll_history_new (memory_pool_t *pool)
+rspamd_roll_history_new (rspamd_mempool_t *pool)
{
struct roll_history *new;
@@ -42,9 +42,9 @@ rspamd_roll_history_new (memory_pool_t *pool)
return NULL;
}
- new = memory_pool_alloc0_shared (pool, sizeof (struct roll_history));
+ new = rspamd_mempool_alloc0_shared (pool, sizeof (struct roll_history));
new->pool = pool;
- new->mtx = memory_pool_get_mutex (pool);
+ new->mtx = rspamd_mempool_get_mutex (pool);
return new;
}
@@ -83,9 +83,9 @@ rspamd_roll_history_update (struct roll_history *history, struct worker_task *ta
if (history->need_lock) {
/* Some process is getting history, so wait on a mutex */
- memory_pool_lock_mutex (history->mtx);
+ rspamd_mempool_lock_mutex (history->mtx);
history->need_lock = FALSE;
- memory_pool_unlock_mutex (history->mtx);
+ rspamd_mempool_unlock_mutex (history->mtx);
}
/* First of all obtain check and obtain row number */