Browse Source

We should only yield once in cg_wunlock

nfactor-troky
Con Kolivas 11 years ago
parent
commit
01e3c878cf
  1. 2
      miner.h

2
miner.h

@ -899,7 +899,7 @@ static inline void cg_runlock(cglock_t *lock) @@ -899,7 +899,7 @@ static inline void cg_runlock(cglock_t *lock)
static inline void cg_wunlock(cglock_t *lock)
{
wr_unlock(&lock->rwlock);
wr_unlock_noyield(&lock->rwlock);
mutex_unlock(&lock->mutex);
}

Loading…
Cancel
Save