mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Implement a cglock_destroy function.
This commit is contained in:
parent
de4ad515e0
commit
d2719e312f
6
miner.h
6
miner.h
@ -910,6 +910,12 @@ static inline void _cglock_init(cglock_t *lock, const char *file, const char *fu
|
||||
_rwlock_init(&lock->rwlock, file, func, line);
|
||||
}
|
||||
|
||||
static inline void cglock_destroy(cglock_t *lock)
|
||||
{
|
||||
rwlock_destroy(&lock->rwlock);
|
||||
mutex_destroy(&lock->mutex);
|
||||
}
|
||||
|
||||
/* Read lock variant of cglock. Cannot be promoted. */
|
||||
static inline void _cg_rlock(cglock_t *lock, const char *file, const char *func, const int line)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user