diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 1db0166d9..961e75645 100644 --- a/src/util.h +++ b/src/util.h @@ -266,6 +266,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 */ @@ -296,6 +302,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 * @param func function to start |