diff options
-rw-r--r-- | host/lib/transport/usb_zero_copy_wrapper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/transport/usb_zero_copy_wrapper.cpp b/host/lib/transport/usb_zero_copy_wrapper.cpp index 843b20f11..d59ea36ff 100644 --- a/host/lib/transport/usb_zero_copy_wrapper.cpp +++ b/host/lib/transport/usb_zero_copy_wrapper.cpp @@ -87,6 +87,12 @@ public: _task = uhd::task::make(boost::bind(&usb_zero_copy_wrapper_msb::auto_flush, this)); } + ~usb_zero_copy_wrapper_msb(void) + { + //ensure the task has exited before anything auto deconstructs + _task.reset(); + } + void release(void){ boost::mutex::scoped_lock lock(_mutex); _ok_to_auto_flush = true; |