Browse Source

Set devices to disabled after they exit the hashing loops to prevent the watchdog thread from trying to act on them.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
185cac3ee9
  1. 2
      cgminer.c

2
cgminer.c

@ -5821,6 +5821,7 @@ static void hash_sole_work(struct thr_info *mythr) @@ -5821,6 +5821,7 @@ static void hash_sole_work(struct thr_info *mythr)
} while (!abandon_work(work, &wdiff, cgpu->max_hashes));
free_work(work);
}
cgpu->deven = DEV_DISABLED;
}
/* Create a hashtable of work items for devices with a queue. The device
@ -5993,6 +5994,7 @@ void hash_queued_work(struct thr_info *mythr) @@ -5993,6 +5994,7 @@ void hash_queued_work(struct thr_info *mythr)
drv->flush_work(cgpu);
}
}
cgpu->deven = DEV_DISABLED;
}
void *miner_thread(void *userdata)

Loading…
Cancel
Save