aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-17 11:04:11 -0700
committerJosh Blum <josh@joshknows.com>2011-06-17 11:04:11 -0700
commita852b6011c11e32e000ccd18c2009edfe81500ee (patch)
tree17f7647a5ed5cb4dc610b50116bd920c3958356d /host/lib/transport
parenta984d9059a9cd405b18815f5e7669fbd0b0fa555 (diff)
parentbc87971891df7f47c8240a24d2a602c6ae63bbc2 (diff)
downloaduhd-a852b6011c11e32e000ccd18c2009edfe81500ee.tar.gz
uhd-a852b6011c11e32e000ccd18c2009edfe81500ee.tar.bz2
uhd-a852b6011c11e32e000ccd18c2009edfe81500ee.zip
Merge branch 'master' into frontend_work
Conflicts: host/lib/usrp/usrp_e100/io_impl.cpp
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp
index 19a7a3742..f781f890d 100644
--- a/host/lib/transport/libusb1_zero_copy.cpp
+++ b/host/lib/transport/libusb1_zero_copy.cpp
@@ -222,7 +222,6 @@ public:
}
}
//shutdown the threads
- _threads_running = false;
_thread_group.interrupt_all();
_thread_group.join_all();
}
@@ -277,15 +276,13 @@ private:
//! event handler threads
boost::thread_group _thread_group;
- bool _threads_running;
void run_event_loop(boost::barrier &spawn_barrier){
- _threads_running = true;
spawn_barrier.wait();
set_thread_priority_safe();
libusb_context *context = libusb::session::get_global_session()->get_context();
try{
- while(_threads_running){
+ while (not boost::this_thread::interruption_requested()){
timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 100000; //100ms