aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_driver/ad9361_device.h
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2014-08-13 10:40:39 -0700
committerAshish Chaudhari <ashish@ettus.com>2014-08-13 10:40:39 -0700
commit09898c18f46ab37a1ee716b0bfee8a88099552ba (patch)
treeb060a0670ef7cbbd416bf2b891b76514ecfc552d /host/lib/usrp/common/ad9361_driver/ad9361_device.h
parent41657ecc535386e39c4ff78cd84c8533b7599741 (diff)
downloaduhd-09898c18f46ab37a1ee716b0bfee8a88099552ba.tar.gz
uhd-09898c18f46ab37a1ee716b0bfee8a88099552ba.tar.bz2
uhd-09898c18f46ab37a1ee716b0bfee8a88099552ba.zip
ad9361: Added synchronization to IO and device classes
Diffstat (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_device.h')
-rw-r--r--host/lib/usrp/common/ad9361_driver/ad9361_device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.h b/host/lib/usrp/common/ad9361_driver/ad9361_device.h
index 079f5dc1d..2d067fa7d 100644
--- a/host/lib/usrp/common/ad9361_driver/ad9361_device.h
+++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.h
@@ -7,6 +7,7 @@
#include <ad9361_client.h>
#include <boost/noncopyable.hpp>
+#include <boost/thread/recursive_mutex.hpp>
namespace uhd { namespace usrp {
@@ -115,6 +116,8 @@ private: //Members
boost::int32_t _tfir_factor;
//Register soft-copies
chip_regs_t _regs;
+ //Synchronization
+ boost::recursive_mutex _mutex;
};
}} //namespace