mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-09 20:52:08 +00:00
Don't yield when downgrading a cg ilock.
This commit is contained in:
parent
736dfb4075
commit
b8a203ab33
2
miner.h
2
miner.h
@ -824,7 +824,7 @@ static inline void cg_wlock(cglock_t *lock)
|
|||||||
static inline void cg_dlock(cglock_t *lock)
|
static inline void cg_dlock(cglock_t *lock)
|
||||||
{
|
{
|
||||||
rd_lock(&lock->rwlock);
|
rd_lock(&lock->rwlock);
|
||||||
mutex_unlock(&lock->mutex);
|
mutex_unlock_noyield(&lock->mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void cg_runlock(cglock_t *lock)
|
static inline void cg_runlock(cglock_t *lock)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user