aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-06-02 18:55:11 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commit33f6435e4b4169b2aec74b91501a492a6fd93c60 (patch)
tree16243794969c5bc130e24b4e233539f54c5b7963 /host/lib
parent4b9e07629db6ee4e05b233b53e3b80861a0aa030 (diff)
downloaduhd-33f6435e4b4169b2aec74b91501a492a6fd93c60.tar.gz
uhd-33f6435e4b4169b2aec74b91501a492a6fd93c60.tar.bz2
uhd-33f6435e4b4169b2aec74b91501a492a6fd93c60.zip
mpmd: Explicitly unclaim devices on destruction
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/mpmd/mpmd_mboard_impl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
index 6ebb2caf6..afb7570bf 100644
--- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
+++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
@@ -16,6 +16,8 @@
//
#include "mpmd_impl.hpp"
+#include <uhd/utils/safe_call.hpp>
+#include <uhd/utils/log.hpp>
#include <chrono>
#include <thread>
@@ -90,7 +92,11 @@ mpmd_mboard_impl::mpmd_mboard_impl(
mpmd_mboard_impl::~mpmd_mboard_impl()
{
- /* nop */
+ UHD_SAFE_CALL(
+ if (not rpc->request_with_token<bool>("unclaim")) {
+ UHD_LOG_WARNING("MPMD", "Failure to ack unclaim!");
+ }
+ );
}
/*****************************************************************************