Browse Source

enumerate the mining threadnames

nfactor-troky
Denis Ahrens 12 years ago
parent
commit
4fbdc1eaa8
  1. 4
      cgminer.c

4
cgminer.c

@ -5509,7 +5509,9 @@ void *miner_thread(void *userdata) @@ -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);

Loading…
Cancel
Save