Commit a70ea23e64f22be7a7c7859cfab7e036884238c3

Con Kolivas 2014-02-28T00:30:08

Set the work generation thread high priority, not the miner threads.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/cgminer.c b/cgminer.c
index 742871a..4fd9106 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7226,7 +7226,6 @@ void *miner_thread(void *userdata)
 	applog(LOG_DEBUG, "Waiting on sem in miner thread");
 	cgsem_wait(&mythr->sem);
 
-	set_highprio();
 	cgpu->last_device_valid_work = time(NULL);
 	drv->hash_work(mythr);
 out:
@@ -8945,6 +8944,8 @@ begin_bench:
 	if (total_control_threads != 8)
 		quit(1, "incorrect total_control_threads (%d) should be 8", total_control_threads);
 
+	set_highprio();
+
 	/* Once everything is set up, main() becomes the getwork scheduler */
 	while (42) {
 		int ts, max_staged = opt_queue;