Commit bf4c3626bce572c0e313a1edcca8a04608723cff

Con Kolivas 2011-07-30T12:00:12

Send ping to wake up new threads.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/main.c b/main.c
index f119508..98ebf32 100644
--- a/main.c
+++ b/main.c
@@ -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;
 }