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/lib/usrp/b200/b200_iface.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'host/lib/usrp/b200') diff --git a/host/lib/usrp/b200/b200_iface.cpp b/host/lib/usrp/b200/b200_iface.cpp index 836a92ff7..432201429 100644 --- a/host/lib/usrp/b200/b200_iface.cpp +++ b/host/lib/usrp/b200/b200_iface.cpp @@ -13,7 +13,6 @@ #include #include -#include #include #include #include @@ -22,6 +21,8 @@ #include #include #include +#include +#include #include //! libusb_error_name is only in newer API @@ -225,7 +226,7 @@ public: /* Success! Let the system settle. */ // TODO: Replace this with a polling loop in the FX3, or find out // what the actual, correct timeout value is. - boost::this_thread::sleep(boost::posix_time::milliseconds(1000)); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); } void reset_fx3(void) { @@ -431,7 +432,7 @@ public: return fx3_state; } - boost::this_thread::sleep(boost::posix_time::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); wait_count++; } while(fx3_state != FX3_STATE_FPGA_READY); @@ -456,7 +457,7 @@ public: return fx3_state; } - boost::this_thread::sleep(boost::posix_time::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); wait_count++; } while(fx3_state != FX3_STATE_CONFIGURING_FPGA); @@ -505,7 +506,7 @@ public: return fx3_state; } - boost::this_thread::sleep(boost::posix_time::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); wait_count++; } while(fx3_state != FX3_STATE_RUNNING); -- cgit v1.2.3