summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-08-25 15:26:57 -0700
committerJosh Blum <josh@joshknows.com>2011-08-29 17:03:30 -0700
commitbcb76b5d5d29626a879250d8ad58e9219b2928c5 (patch)
tree20aa098020bf7825ccd2e037f5ac44052e54ff01 /host
parentc54fc1d7202b1cf29d34f6cc8f169a79e1c57f14 (diff)
downloaduhd-bcb76b5d5d29626a879250d8ad58e9219b2928c5.tar.gz
uhd-bcb76b5d5d29626a879250d8ad58e9219b2928c5.tar.bz2
uhd-bcb76b5d5d29626a879250d8ad58e9219b2928c5.zip
usrp2: manually deconstruct tasks, fixes cleanup bug
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index aef3f3a39..70331e536 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -134,6 +134,11 @@ struct usrp2_impl::io_impl{
/* NOP */
}
+ ~io_impl(void){
+ //Manually deconstuct the tasks, since this was not happening automatically.
+ pirate_tasks.clear();
+ }
+
managed_send_buffer::sptr get_send_buff(size_t chan, double timeout){
flow_control_monitor &fc_mon = *fc_mons[chan];