Browse Source

enumerate the mining threadnames

Denis Ahrens 13 years ago
parent
commit
4fbdc1eaa8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      cgminer.c

+ 3 - 1
cgminer.c

@@ -5509,7 +5509,9 @@ void *miner_thread(void *userdata)
 
 	pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
 
-	RenameThread("miner");
+	char threadname[20];
+        snprintf(threadname,20,"miner %d",thr_id);
+	RenameThread(threadname);
 
 	gettimeofday(&getwork_start, NULL);