aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-24 10:58:34 -0800
committerJosh Blum <josh@joshknows.com>2011-01-24 10:58:34 -0800
commit9e2d669de18b40a69b212175bf1e6f44ad7cc5bc (patch)
treede3003da8d8898cd10e83803964eb99f3d63995d /host/lib/usrp/usrp1
parentff796f519df11111f028a505125ce95f060c897e (diff)
downloaduhd-9e2d669de18b40a69b212175bf1e6f44ad7cc5bc.tar.gz
uhd-9e2d669de18b40a69b212175bf1e6f44ad7cc5bc.tar.bz2
uhd-9e2d669de18b40a69b212175bf1e6f44ad7cc5bc.zip
usrp1: changes that make benchmark rx work
initialize the time to something in soft time control use std::max(0, lost) because the time is emulated, lost can be negative which means huge positive unsigned...
Diffstat (limited to 'host/lib/usrp/usrp1')
-rw-r--r--host/lib/usrp/usrp1/soft_time_ctrl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/soft_time_ctrl.cpp b/host/lib/usrp/usrp1/soft_time_ctrl.cpp
index 856faf89d..c91ecc7ed 100644
--- a/host/lib/usrp/usrp1/soft_time_ctrl.cpp
+++ b/host/lib/usrp/usrp1/soft_time_ctrl.cpp
@@ -69,6 +69,9 @@ public:
_thread_group.create_thread(boost::bind(&soft_time_ctrl_impl::recv_cmd_dispatcher, this));
_update_mutex.lock(); //lock blocks until spawned
_update_mutex.unlock(); //unlock mutex before done
+
+ //initialize the time to something
+ this->set_time(time_spec_t(0.0));
}
~soft_time_ctrl_impl(void){