From 9f16b409d36a06ba3c40ca1d68411b74cd5fbbbb Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 19 Sep 2011 18:02:35 -0700 Subject: b100: order of deconstruction, kill marauder first --- host/lib/usrp/b100/b100_ctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib') diff --git a/host/lib/usrp/b100/b100_ctrl.cpp b/host/lib/usrp/b100/b100_ctrl.cpp index e08b47ce4..7d40daa32 100644 --- a/host/lib/usrp/b100/b100_ctrl.cpp +++ b/host/lib/usrp/b100/b100_ctrl.cpp @@ -45,6 +45,11 @@ public: viking_marauder = task::make(boost::bind(&b100_ctrl_impl::viking_marauder_loop, this)); } + ~b100_ctrl_impl(void){ + //stop the marauder first so it cant access deconstructed objects + viking_marauder.reset(); + } + int write(boost::uint32_t addr, const ctrl_data_t &data); ctrl_data_t read(boost::uint32_t addr, size_t len); -- cgit v1.2.3