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-25 15:26:57 -0700
commit997fff3bb81513408e618aa411a8973f80d32521 (patch)
tree9614947e23edab631fff7f1adaa1015cc076d5a9 /host
parent93e8f2ebf05a5ae9410d46104e72553a205bf1f3 (diff)
downloaduhd-997fff3bb81513408e618aa411a8973f80d32521.tar.gz
uhd-997fff3bb81513408e618aa411a8973f80d32521.tar.bz2
uhd-997fff3bb81513408e618aa411a8973f80d32521.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];