From 530e3b017273868925368a0bcec51aecfa64f379 Mon Sep 17 00:00:00 2001 From: Kano Date: Fri, 8 Feb 2013 02:38:37 +1100 Subject: [PATCH] hotplug use get_thread() where appropriate --- cgminer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cgminer.c b/cgminer.c index 7b17950c..ad0071e5 100644 --- a/cgminer.c +++ b/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;