Prevent too tight loop on the 1st core
This commit is contained in:
parent
558c3a0a41
commit
f45d343c8c
|
@ -598,6 +598,8 @@ static void do_rx()
|
|||
if (queue_try_remove(&iq_queue, &block)) {
|
||||
fwrite(block, IQ_BLOCK_LEN, 1, stdout);
|
||||
fflush(stdout);
|
||||
} else {
|
||||
sleep_us(25);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue