From 0303f1ed558b21e40f80c388b096432b4bf6e883 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 26 Apr 2018 09:30:48 -0700 Subject: lib: Purge all references to boost::this_thread::sleep() Replace with std::this_thread::sleep_for(). --- host/utils/uhd_cal_tx_dc_offset.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'host/utils/uhd_cal_tx_dc_offset.cpp') diff --git a/host/utils/uhd_cal_tx_dc_offset.cpp b/host/utils/uhd_cal_tx_dc_offset.cpp index 4adea9c2a..ecd676e07 100644 --- a/host/utils/uhd_cal_tx_dc_offset.cpp +++ b/host/utils/uhd_cal_tx_dc_offset.cpp @@ -18,6 +18,8 @@ #include #include #include +#include +#include namespace po = boost::program_options; @@ -80,7 +82,7 @@ static double tune_rx_and_tx(uhd::usrp::multi_usrp::sptr usrp, const double tx_l usrp->set_rx_freq(rx_tune_req); //wait for the LOs to become locked - boost::this_thread::sleep(boost::posix_time::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); boost::system_time start = boost::get_system_time(); while (not usrp->get_tx_sensor("lo_locked").to_bool() or not usrp->get_rx_sensor("lo_locked").to_bool()) { @@ -282,7 +284,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) //stop the transmitter threads.interrupt_all(); - boost::this_thread::sleep(boost::posix_time::milliseconds(500)); //wait for threads to finish + std::this_thread::sleep_for(std::chrono::milliseconds(500)); //wait for threads to finish threads.join_all(); store_results(results, "TX", "tx", "dc", serial); -- cgit v1.2.3