diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-25 18:22:18 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-25 18:22:18 -0700 |
commit | c0764b44e3f38fe954474ccdf92895b943d8d889 (patch) | |
tree | ab5757d78045cda237c22baffcd140de06045070 /host/lib/usrp | |
parent | ddbada4e64fe4117a0777b7a3d12a1a527991511 (diff) | |
download | uhd-c0764b44e3f38fe954474ccdf92895b943d8d889.tar.gz uhd-c0764b44e3f38fe954474ccdf92895b943d8d889.tar.bz2 uhd-c0764b44e3f38fe954474ccdf92895b943d8d889.zip |
uhd: exit task on the catch-all exceptions, and dont print anything
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_iface.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp index b621c4c25..932655eff 100644 --- a/host/lib/usrp/usrp2/usrp2_iface.cpp +++ b/host/lib/usrp/usrp2/usrp2_iface.cpp @@ -132,9 +132,7 @@ public: boost::uint32_t curr_secs = this->peek32(U2_REG_TIME64_SECS_RB_IMM); this->get_reg<boost::uint32_t, USRP2_REG_ACTION_FW_POKE32>(U2_FW_REG_LOCK_TIME, curr_secs); //sleep for a bit - try{//HACK this try/catch is a work-around for when sleep throws something other than thread_interrupted - boost::this_thread::sleep(boost::posix_time::milliseconds(1500)); - }catch(...){throw boost::thread_interrupted();} + boost::this_thread::sleep(boost::posix_time::milliseconds(500)); } /*********************************************************************** |