mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Check for work restart after disable in the hash queued work loop since it may be a long time before we re-enable a device.
This commit is contained in:
parent
fdfb77e7c2
commit
b4bc5e2b13
@ -5910,13 +5910,13 @@ void hash_queued_work(struct thr_info *mythr)
|
|||||||
memcpy(&tv_start, &tv_end, sizeof(struct timeval));
|
memcpy(&tv_start, &tv_end, sizeof(struct timeval));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unlikely(mythr->pause || cgpu->deven != DEV_ENABLED))
|
||||||
|
mt_disable(mythr, thr_id, drv);
|
||||||
|
|
||||||
if (unlikely(mythr->work_restart)) {
|
if (unlikely(mythr->work_restart)) {
|
||||||
flush_queue(cgpu);
|
flush_queue(cgpu);
|
||||||
drv->flush_work(cgpu);
|
drv->flush_work(cgpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(mythr->pause || cgpu->deven != DEV_ENABLED))
|
|
||||||
mt_disable(mythr, thr_id, drv);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user