mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-28 23:44:30 +00:00
We don't want to continue into the hash_pop function if the getq is frozen.
This commit is contained in:
parent
cbea0a5306
commit
0e43084c09
@ -5484,7 +5484,7 @@ static struct work *hash_pop(void)
|
|||||||
int hc;
|
int hc;
|
||||||
|
|
||||||
mutex_lock(stgd_lock);
|
mutex_lock(stgd_lock);
|
||||||
while (!getq->frozen && !HASH_COUNT(staged_work))
|
while (!HASH_COUNT(staged_work))
|
||||||
pthread_cond_wait(&getq->cond, stgd_lock);
|
pthread_cond_wait(&getq->cond, stgd_lock);
|
||||||
|
|
||||||
hc = HASH_COUNT(staged_work);
|
hc = HASH_COUNT(staged_work);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user