Browse Source

Implement a rwlock_destroy function.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
de4ad515e0
  1. 5
      miner.h

5
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); 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) static inline void _cglock_init(cglock_t *lock, const char *file, const char *func, const int line)
{ {
_mutex_init(&lock->mutex, file, func, line); _mutex_init(&lock->mutex, file, func, line);

Loading…
Cancel
Save