aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e100
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-22 17:02:07 -0700
committerJosh Blum <josh@joshknows.com>2011-04-22 17:02:07 -0700
commit627075e60e0b893a412e849301ccef5bb2e8a68a (patch)
treeef35c3da25ff76dc2feb28677d0e33f54f724cf3 /host/lib/usrp/usrp_e100
parentef9ca5f928a9ebe4a3f8551698ea4f20f52f6652 (diff)
downloaduhd-627075e60e0b893a412e849301ccef5bb2e8a68a.tar.gz
uhd-627075e60e0b893a412e849301ccef5bb2e8a68a.tar.bz2
uhd-627075e60e0b893a412e849301ccef5bb2e8a68a.zip
uhd: move thread loop condition flag to before barrier (prevents race condition)
Diffstat (limited to 'host/lib/usrp/usrp_e100')
-rw-r--r--host/lib/usrp/usrp_e100/io_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_e100/io_impl.cpp b/host/lib/usrp/usrp_e100/io_impl.cpp
index cbab5a761..51ff02d3b 100644
--- a/host/lib/usrp/usrp_e100/io_impl.cpp
+++ b/host/lib/usrp/usrp_e100/io_impl.cpp
@@ -109,9 +109,9 @@ struct usrp_e100_impl::io_impl{
void usrp_e100_impl::io_impl::recv_pirate_loop(
boost::barrier &spawn_barrier, usrp_e100_clock_ctrl::sptr clock_ctrl
){
+ recv_pirate_crew_raiding = true;
spawn_barrier.wait();
set_thread_priority_safe();
- recv_pirate_crew_raiding = true;
while(recv_pirate_crew_raiding){
managed_recv_buffer::sptr buff = this->data_xport->get_recv_buff();