Fix problem with commands timing out (specifically stop_rx_streaming)
authorEric Blossom <eb@comsec.com>
Fri, 4 Sep 2009 10:32:32 +0000 (03:32 -0700)
committerEric Blossom <eb@comsec.com>
Fri, 4 Sep 2009 16:48:16 +0000 (09:48 -0700)
commit96b6c7b97e3fb9188bc6906153254dc36cedc2cb
treee3049476dabea6fd8b4383f3bcb70c74d34e81e5
parent5d040bc94b40cab5420303f959695d89fe83e031
Fix problem with commands timing out (specifically stop_rx_streaming)

After fixing the race, this change uses Tom's idea to stop enqueuing
data when trying to stop, and adds a new flush_rx_samples method
to drop any samples that may have already been accumulated.

I ran Tom's test case 500 times with 0 failures ;-)
usrp2/host/lib/usrp2_impl.cc
usrp2/host/lib/usrp2_impl.h