aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2016-05-04 15:43:38 -0700
committerMartin Braun <martin.braun@ettus.com>2016-05-04 16:55:47 -0700
commit9e8bb7e7d6a8191ff582c40665d1d85ff55328e6 (patch)
treebf714a844f91124f042735126982dd35be10da80 /host
parent698f040f0b62baa59ce45da890a16e9155890c70 (diff)
downloaduhd-9e8bb7e7d6a8191ff582c40665d1d85ff55328e6.tar.gz
uhd-9e8bb7e7d6a8191ff582c40665d1d85ff55328e6.tar.bz2
uhd-9e8bb7e7d6a8191ff582c40665d1d85ff55328e6.zip
b200: Changed tree sptr in lambda to wptr
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 327d7760d..3c9fe2e27 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -33,6 +33,7 @@
#include <boost/lexical_cast.hpp>
#include <boost/functional/hash.hpp>
#include <boost/make_shared.hpp>
+#include <boost/weak_ptr.hpp>
#include <cstdio>
#include <ctime>
#include <cmath>
@@ -731,9 +732,12 @@ b200_impl::~b200_impl(void)
* setup radio control objects
**********************************************************************/
-void lambda_set_bool_prop(property_tree::sptr tree, fs_path path, bool value, double)
+void lambda_set_bool_prop(boost::weak_ptr<property_tree> tree_wptr, fs_path path, bool value, double)
{
- tree->access<bool>(path).set(value);
+ property_tree::sptr tree = tree_wptr.lock();
+ if (tree) {
+ tree->access<bool>(path).set(value);
+ }
}
void b200_impl::setup_radio(const size_t dspno)