Browse Source

hotplug use get_thread() where appropriate

Kano 13 years ago
parent
commit
530e3b0172
1 changed files with 1 additions and 3 deletions
  1. 1 3
      cgminer.c

+ 1 - 3
cgminer.c

@@ -6522,9 +6522,7 @@ static void hotplug_process()
 		cgpu->status = LIFE_INIT;
 
 		for (j = 0; j < cgpu->threads; ++j) {
-			mutex_lock(&mining_thr_lock);
-			thr = mining_thr[mining_threads];
-			mutex_unlock(&mining_thr_lock);
+			thr = get_thread(mining_threads);
 			thr->id = mining_threads;
 			thr->cgpu = cgpu;
 			thr->device_thread = j;