Commit de4ad515e05f3943333169cf888ecd0562eab7c0

Con Kolivas 2013-10-23T20:37:10

Implement a rwlock_destroy function.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/miner.h b/miner.h
index b53497f..e29fb78 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);