mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 12:41:02 +00:00
Disable the reinit_thread option till we know it actually works.
This commit is contained in:
parent
bb575a5585
commit
a702f599d3
4
main.c
4
main.c
@ -3448,10 +3448,12 @@ static void *reinit_gpu(void *userdata)
|
|||||||
|
|
||||||
static void reinit_thread(struct thr_info *thr)
|
static void reinit_thread(struct thr_info *thr)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
pthread_t resus_thread;
|
pthread_t resus_thread;
|
||||||
|
|
||||||
if (unlikely(pthread_create(&resus_thread, NULL, reinit_gputhread, (void *)thr)))
|
if (unlikely(pthread_create(&resus_thread, NULL, reinit_gputhread, (void *)thr)))
|
||||||
applog(LOG_ERR, "Failed to create reinit thread");
|
applog(LOG_ERR, "Failed to create reinit thread");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void reinit_device(struct cgpu_info *cgpu)
|
static void reinit_device(struct cgpu_info *cgpu)
|
||||||
@ -3566,7 +3568,7 @@ static void *watchdog_thread(void *userdata)
|
|||||||
} else if (now.tv_sec - thr->last.tv_sec > 600 && gpus[i].status == LIFE_SICK) {
|
} else if (now.tv_sec - thr->last.tv_sec > 600 && gpus[i].status == LIFE_SICK) {
|
||||||
gpus[gpu].status = LIFE_DEAD;
|
gpus[gpu].status = LIFE_DEAD;
|
||||||
applog(LOG_ERR, "Thread %d idle for more than 10 minutes, GPU %d declared DEAD!", i, gpu);
|
applog(LOG_ERR, "Thread %d idle for more than 10 minutes, GPU %d declared DEAD!", i, gpu);
|
||||||
applog(LOG_ERR, "Attempting to restart thread");
|
//applog(LOG_ERR, "Attempting to restart thread");
|
||||||
reinit_thread(thr);
|
reinit_thread(thr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user