From 4ab72eb9991d503d8cd329b31572d966ef0e1ae8 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Tue, 4 Apr 2017 19:21:31 -0700 Subject: device3: Fixed potential concurreny issues - Protected block_ctrl vector with a mutex - Note: const block accessors are not thread safe - Removed sid_framer from base device3 class - Made x300,e300 sid_framers atomic --- host/lib/device3.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/device3.cpp') diff --git a/host/lib/device3.cpp b/host/lib/device3.cpp index c3bfb83d2..b2f27e744 100644 --- a/host/lib/device3.cpp +++ b/host/lib/device3.cpp @@ -68,6 +68,7 @@ std::vector device3::find_blocks(const std::string &block_id_ void device3::clear() { + boost::lock_guard lock(_block_ctrl_mutex); for(const block_ctrl_base::sptr &block: _rfnoc_block_ctrl) { block->clear(); } -- cgit v1.2.3