1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 15:04:17 +00:00

Implement a rwlock_destroy function.

This commit is contained in:
Con Kolivas 2013-10-23 20:37:10 +11:00
parent 6bd5139cfc
commit de4ad515e0

View File

@ -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);