1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-10 04:31:03 +00:00

Disable the reinit_thread option till we know it actually works.

This commit is contained in:
Con Kolivas 2011-07-30 02:31:29 +10:00
parent bb575a5585
commit a702f599d3

4
main.c
View File

@ -3448,10 +3448,12 @@ static void *reinit_gpu(void *userdata)
static void reinit_thread(struct thr_info *thr)
{
#if 0
pthread_t resus_thread;
if (unlikely(pthread_create(&resus_thread, NULL, reinit_gputhread, (void *)thr)))
applog(LOG_ERR, "Failed to create reinit thread");
#endif
}
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) {
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, "Attempting to restart thread");
//applog(LOG_ERR, "Attempting to restart thread");
reinit_thread(thr);
}
}