Browse Source

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

nfactor-troky
Con Kolivas 14 years ago
parent
commit
732baa1812
  1. 2
      main.c

2
main.c

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

Loading…
Cancel
Save