From b90267a71cc8cdc8b38675322ef9fa7a9cb5468c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Aug 2012 21:41:48 +0400 Subject: * Rework thread pools locking logic to avoid global lua mutex usage. Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries. --- src/util.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 1db0166d9..961e75645 100644 --- a/src/util.h +++ b/src/util.h @@ -265,6 +265,12 @@ void rspamd_mutex_lock (rspamd_mutex_t *mtx); */ void rspamd_mutex_unlock (rspamd_mutex_t *mtx); +/** + * Clear rspamd mutex + * @param mtx + */ +void rspamd_mutex_free (rspamd_mutex_t *mtx); + /** * Create new rwloc * @return @@ -295,6 +301,12 @@ void rspamd_rwlock_writer_unlock (rspamd_rwlock_t *mtx); */ void rspamd_rwlock_reader_unlock (rspamd_rwlock_t *mtx); +/** + * Free rwlock + * @param mtx + */ +void rspamd_rwlock_free (rspamd_rwlock_t *mtx); + /** * Create new named thread * @param name name pattern -- cgit v1.2.3