diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-16 10:56:28 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-17 16:48:53 -0700 |
commit | 27f5e9151c1621f25948a579c1cf7aa0e156e323 (patch) | |
tree | 18f279eacd75f24cbb833f59c9ceac17b5c1d0d4 /host/lib/usrp/x300/x300_fw_ctrl.cpp | |
parent | 6fd956def44f7315c47672e961e60a37fd5d1fca (diff) | |
download | uhd-27f5e9151c1621f25948a579c1cf7aa0e156e323.tar.gz uhd-27f5e9151c1621f25948a579c1cf7aa0e156e323.tar.bz2 uhd-27f5e9151c1621f25948a579c1cf7aa0e156e323.zip |
x300: Replace all references to boost::this_thread::sleep()
Use std::this_thread::sleep_for() instead.
Diffstat (limited to 'host/lib/usrp/x300/x300_fw_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_fw_ctrl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/host/lib/usrp/x300/x300_fw_ctrl.cpp b/host/lib/usrp/x300/x300_fw_ctrl.cpp index dd2e299bb..21c64b509 100644 --- a/host/lib/usrp/x300/x300_fw_ctrl.cpp +++ b/host/lib/usrp/x300/x300_fw_ctrl.cpp @@ -17,7 +17,8 @@ #include <uhd/transport/nirio/niriok_proxy.h> #include "x300_regs.hpp" #include <boost/date_time/posix_time/posix_time.hpp> -#include <boost/thread/thread.hpp> +#include <chrono> +#include <thread> using namespace uhd; using namespace uhd::niusrprio; @@ -210,7 +211,7 @@ public: boost::posix_time::time_duration elapsed; do { - boost::this_thread::sleep(boost::posix_time::microsec(500)); //Avoid flooding the bus + std::this_thread::sleep_for(std::chrono::microseconds(500)); //Avoid flooding the bus elapsed = boost::posix_time::microsec_clock::local_time() - start_time; nirio_status_chain(_drv_proxy->peek(PCIE_ZPU_STATUS_REG(0), reg_data), status); } while ( @@ -238,7 +239,7 @@ protected: nirio_status_chain(_drv_proxy->poke(PCIE_ZPU_DATA_REG(addr), data), status); if (nirio_status_not_fatal(status)) { do { - boost::this_thread::sleep(boost::posix_time::microsec(50)); //Avoid flooding the bus + std::this_thread::sleep_for(std::chrono::microseconds(50)); //Avoid flooding the bus elapsed = boost::posix_time::microsec_clock::local_time() - start_time; nirio_status_chain(_drv_proxy->peek(PCIE_ZPU_STATUS_REG(addr), reg_data), status); } while ( @@ -263,7 +264,7 @@ protected: nirio_status_chain(_drv_proxy->poke(PCIE_ZPU_READ_REG(addr), PCIE_ZPU_READ_START), status); if (nirio_status_not_fatal(status)) { do { - boost::this_thread::sleep(boost::posix_time::microsec(50)); //Avoid flooding the bus + std::this_thread::sleep_for(std::chrono::microseconds(50)); //Avoid flooding the bus elapsed = boost::posix_time::microsec_clock::local_time() - start_time; nirio_status_chain(_drv_proxy->peek(PCIE_ZPU_STATUS_REG(addr), reg_data), status); } while ( |