1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

Send ping to wake up new threads.

This commit is contained in:
Con Kolivas 2011-07-30 12:00:12 +10:00
parent 62521f3e53
commit bf4c3626bc

4
main.c
View File

@ -3396,6 +3396,10 @@ static void *reinit_gpu(void *userdata)
/* Try to re-enable it */
gpu_devices[gpu] = true;
for (thr_id = 0; thr_id < gpu_threads; thr_id ++) {
if (dev_from_id(thr_id) == gpu)
tq_push(thr->q, &ping);
}
return NULL;
}