From 33f6435e4b4169b2aec74b91501a492a6fd93c60 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 2 Jun 2017 18:55:11 -0700 Subject: mpmd: Explicitly unclaim devices on destruction --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') 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 +#include #include #include @@ -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("unclaim")) { + UHD_LOG_WARNING("MPMD", "Failure to ack unclaim!"); + } + ); } /***************************************************************************** -- cgit v1.2.3