aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/fifo_ctrl_excelsior.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-04-06 16:35:50 -0700
committerMartin Braun <martin.braun@ettus.com>2015-04-06 16:35:50 -0700
commit38b740cde2dfde06185edb83d9caa64a56789914 (patch)
treef5073ba267ee22a36e915bdb40fba94845e15958 /host/lib/usrp/common/fifo_ctrl_excelsior.cpp
parent949eebc0e456db83bb44da24197a038ea695b65b (diff)
parent93d909e7c8c4053a05cdc9cb69c886183b4a7f09 (diff)
downloaduhd-38b740cde2dfde06185edb83d9caa64a56789914.tar.gz
uhd-38b740cde2dfde06185edb83d9caa64a56789914.tar.bz2
uhd-38b740cde2dfde06185edb83d9caa64a56789914.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/common/fifo_ctrl_excelsior.cpp')
-rw-r--r--host/lib/usrp/common/fifo_ctrl_excelsior.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/usrp/common/fifo_ctrl_excelsior.cpp b/host/lib/usrp/common/fifo_ctrl_excelsior.cpp
index 2ea5b66da..f55d1ef41 100644
--- a/host/lib/usrp/common/fifo_ctrl_excelsior.cpp
+++ b/host/lib/usrp/common/fifo_ctrl_excelsior.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2012 Ettus Research LLC
+// Copyright 2012,2015 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -207,6 +207,12 @@ public:
if (_use_time) _timeout = MASSIVE_TIMEOUT; //permanently sets larger timeout
}
+ uhd::time_spec_t get_time(void)
+ {
+ boost::mutex::scoped_lock lock(_mutex);
+ return _time;
+ }
+
void set_tick_rate(const double rate){
boost::mutex::scoped_lock lock(_mutex);
_tick_rate = rate;