1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-28 15:34:16 +00:00

Sleep for less time in wait_avalon_ready till we have a better signalling system from read thread to write.

This commit is contained in:
Con Kolivas 2013-06-20 23:59:17 +10:00
parent f4508b6a34
commit 98862b4f46

View File

@ -225,12 +225,13 @@ static bool avalon_decode_nonce(struct thr_info *thr, struct cgpu_info *avalon,
return submit_nonce(thr, work, nonce); return submit_nonce(thr, work, nonce);
} }
/* Wait until the ftdi chip returns a CTS saying we can send more data. The /* Wait until the ftdi chip returns a CTS saying we can send more data. Sleep
* status is updated every 40ms. */ * for less time than the avalon_read function will wait so we are guaranteed
* to go first. */
static void wait_avalon_ready(struct cgpu_info *avalon) static void wait_avalon_ready(struct cgpu_info *avalon)
{ {
while (avalon_buffer_full(avalon)) { while (avalon_buffer_full(avalon)) {
nmsleep(40); nmsleep(16);
} }
} }