aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-19 10:54:51 -0700
committerJosh Blum <josh@joshknows.com>2011-07-19 10:54:51 -0700
commitade354a29e4d0dab3923462e97410bde6de3eb90 (patch)
tree0c38a01ef6d018c51845e4fa9c91e5715537cc4d /host
parentb25cb48e6e9b4c496d0360a11174f2f174e52df6 (diff)
downloaduhd-ade354a29e4d0dab3923462e97410bde6de3eb90.tar.gz
uhd-ade354a29e4d0dab3923462e97410bde6de3eb90.tar.bz2
uhd-ade354a29e4d0dab3923462e97410bde6de3eb90.zip
uspr1: shutdown thread in deconstructor (not automatically)
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index f27fc0768..7a8f6497c 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -385,10 +385,13 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){
}
-usrp1_impl::~usrp1_impl(void){UHD_SAFE_CALL(
- this->enable_rx(false);
- this->enable_tx(false);
-)}
+usrp1_impl::~usrp1_impl(void){
+ _io_impl.reset(); //stops vandal before other stuff gets deconstructed
+ UHD_SAFE_CALL(
+ this->enable_rx(false);
+ this->enable_tx(false);
+ )
+}
/*!
* Capabilities Register