1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-08-29 07:12:16 +00:00

enumerate the mining threadnames

This commit is contained in:
Denis Ahrens 2012-12-02 18:36:15 +01:00
parent 271b05ab04
commit 4fbdc1eaa8

View File

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