Browse Source

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

Con Kolivas 14 years ago
parent
commit
732baa1812
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.c

+ 2 - 0
main.c

@@ -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);