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 10:32:32 +0000 (03:32 -0700)
commit985830ff0afcce7b5af2d829e70f5c440a39c52a
treeb74c059844fde581b0cc549b2c181a6174f2bc49
parente49601b4754da836fece4e869c58b0c9b3e2d8ad
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