From de4ad515e05f3943333169cf888ecd0562eab7c0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 23 Oct 2013 20:37:10 +1100 Subject: [PATCH] Implement a rwlock_destroy function. --- miner.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miner.h b/miner.h index b53497fc..e29fb78a 100644 --- a/miner.h +++ b/miner.h @@ -899,6 +899,11 @@ static inline void _rwlock_init(pthread_rwlock_t *lock, const char *file, const INITLOCK(lock, CGLOCK_RW, file, func, line); } +static inline void rwlock_destroy(pthread_rwlock_t *lock) +{ + pthread_rwlock_destroy(lock); +} + static inline void _cglock_init(cglock_t *lock, const char *file, const char *func, const int line) { _mutex_init(&lock->mutex, file, func, line);