Browse Source

Send ping to wake up new threads.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
bf4c3626bc
  1. 4
      main.c

4
main.c

@ -3396,6 +3396,10 @@ static void *reinit_gpu(void *userdata) @@ -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;
}

Loading…
Cancel
Save