mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
hotplug use get_thread() where appropriate
This commit is contained in:
parent
6fb32f7b5d
commit
530e3b0172
@ -6522,9 +6522,7 @@ static void hotplug_process()
|
|||||||
cgpu->status = LIFE_INIT;
|
cgpu->status = LIFE_INIT;
|
||||||
|
|
||||||
for (j = 0; j < cgpu->threads; ++j) {
|
for (j = 0; j < cgpu->threads; ++j) {
|
||||||
mutex_lock(&mining_thr_lock);
|
thr = get_thread(mining_threads);
|
||||||
thr = mining_thr[mining_threads];
|
|
||||||
mutex_unlock(&mining_thr_lock);
|
|
||||||
thr->id = mining_threads;
|
thr->id = mining_threads;
|
||||||
thr->cgpu = cgpu;
|
thr->cgpu = cgpu;
|
||||||
thr->device_thread = j;
|
thr->device_thread = j;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user