mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-12 14:12:15 +00:00
Give the avalon get results thread name the device number as well.
This commit is contained in:
parent
4076e6b36e
commit
c87f4c303f
@ -688,11 +688,13 @@ static void *avalon_get_results(void *userdata)
|
|||||||
char readbuf[AVALON_READBUF_SIZE];
|
char readbuf[AVALON_READBUF_SIZE];
|
||||||
struct thr_info *thr = info->thr;
|
struct thr_info *thr = info->thr;
|
||||||
int fd = avalon->device_fd;
|
int fd = avalon->device_fd;
|
||||||
|
char threadname[24];
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
|
||||||
pthread_detach(pthread_self());
|
pthread_detach(pthread_self());
|
||||||
|
|
||||||
RenameThread("ava_getres");
|
snprintf(threadname, 24, "ava_getres/%d", avalon->device_id);
|
||||||
|
RenameThread(threadname);
|
||||||
|
|
||||||
while (42) {
|
while (42) {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user