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/e300/e300_i2c.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/e300/e300_i2c.cpp') diff --git a/host/lib/usrp/e300/e300_i2c.cpp b/host/lib/usrp/e300/e300_i2c.cpp index c3db4f67a..24fd429b5 100644 --- a/host/lib/usrp/e300/e300_i2c.cpp +++ b/host/lib/usrp/e300/e300_i2c.cpp @@ -5,13 +5,14 @@ // SPDX-License-Identifier: GPL-3.0-or-later // +#include "e300_i2c.hpp" #include #include #include - -#include "e300_i2c.hpp" #include +#include +#include namespace uhd { namespace usrp { namespace e300 { @@ -281,7 +282,7 @@ public: throw std::runtime_error("ioctl failed"); } // this is ugly - boost::this_thread::sleep(boost::posix_time::milliseconds(5)); + std::this_thread::sleep_for(std::chrono::milliseconds(5)); } uint8_t get_i2c_reg8( @@ -339,7 +340,7 @@ public: throw std::runtime_error("ioctl failed"); } // this is ugly - boost::this_thread::sleep(boost::posix_time::milliseconds(5)); + std::this_thread::sleep_for(std::chrono::milliseconds(5)); } -- cgit v1.2.3