Commit 49ba39627c5a05c1e3f8a9698b9712413e8406f7

Con Kolivas 2012-02-23T17:52:01

Report thread out before it starts to avoid being flagged as sick when waiting for the first work item.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index 6a79ccc..8a2c613 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3425,6 +3425,7 @@ void *miner_thread(void *userdata)
 	if (api->thread_init && !api->thread_init(mythr))
 		goto out;
 
+	thread_reportout(mythr);
 	applog(LOG_DEBUG, "Popping ping in miner thread");
 	tq_pop(mythr->q, NULL); /* Wait for a ping to start */