Rearrangements to the receive thread.

Magnitude conversion now happens immediately when sample data is
received, so there is no risk of newly received data clobbering old
data under CPU overload.
This commit is contained in:
Oliver Jowett 2015-04-09 18:51:31 +01:00
parent e6c81251bf
commit 15ea5ba3da
11 changed files with 234 additions and 160 deletions

View file

@ -63,8 +63,8 @@ struct stats {
// Mode A/C demodulator counts:
uint32_t demod_modeac;
uint32_t blocks_processed;
uint32_t blocks_dropped;
uint64_t samples_processed;
uint64_t samples_dropped;
// timing:
struct timespec demod_cpu;