diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-10 16:27:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-10 16:28:08 +0100 |
commit | 86e0d6c14dde85306c7053d2ddac7624c3af21e1 (patch) | |
tree | 83ac7a1b6f0d2ade05f2674667d3bab2a166b32f /src/libutil/mem_pool.h | |
parent | 583ea41541514ef72e454aebfc05df9aa0d75fb4 (diff) | |
download | rspamd-86e0d6c14dde85306c7053d2ddac7624c3af21e1.tar.gz rspamd-86e0d6c14dde85306c7053d2ddac7624c3af21e1.zip |
[Fix] Another try to fix race conditions on config unload
Diffstat (limited to 'src/libutil/mem_pool.h')
-rw-r--r-- | src/libutil/mem_pool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h index 27d4c8ebf..c8dbf6042 100644 --- a/src/libutil/mem_pool.h +++ b/src/libutil/mem_pool.h @@ -224,6 +224,13 @@ void rspamd_mempool_replace_destructor (rspamd_mempool_t *pool, rspamd_mempool_destruct_t func, void *old_data, void *new_data); /** + * Calls all destructors associated with the specific memory pool without removing + * of the pool itself + * @param pool + */ +void rspamd_mempool_destructors_enforce (rspamd_mempool_t *pool); + +/** * Delete pool, free all its chunks and call destructors chain * @param pool memory pool object */ |