1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Use the wakeup thread as a watchdog to ensure we don't fall between the holes of queue and dequeue.

This commit is contained in:
Con Kolivas 2011-07-08 06:12:38 +10:00
parent 37382565ad
commit 732baa1812

2
main.c
View File

@ -1537,6 +1537,8 @@ static void *wakeup_thread(void *userdata)
while (1) {
sleep(interval);
if (!requests_queued())
queue_request();
hashmeter(-1, &zero_tv, 0);
if (unlikely(work_restart[stage_thr_id].restart)) {
restart_threads(false);