From ade354a29e4d0dab3923462e97410bde6de3eb90 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 19 Jul 2011 10:54:51 -0700 Subject: uspr1: shutdown thread in deconstructor (not automatically) --- host/lib/usrp/usrp1/usrp1_impl.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp') 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 -- cgit v1.2.3