aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300/e300_i2c.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-26 09:30:48 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-30 17:10:26 -0700
commit0303f1ed558b21e40f80c388b096432b4bf6e883 (patch)
tree05afcc4d2401bb86f9e38e3b04ec5b07e9268302 /host/lib/usrp/e300/e300_i2c.cpp
parentfc67052345373c6d5c1b62064a9f9ef6f888e3ff (diff)
downloaduhd-0303f1ed558b21e40f80c388b096432b4bf6e883.tar.gz
uhd-0303f1ed558b21e40f80c388b096432b4bf6e883.tar.bz2
uhd-0303f1ed558b21e40f80c388b096432b4bf6e883.zip
lib: Purge all references to boost::this_thread::sleep()
Replace with std::this_thread::sleep_for().
Diffstat (limited to 'host/lib/usrp/e300/e300_i2c.cpp')
-rw-r--r--host/lib/usrp/e300/e300_i2c.cpp9
1 files changed, 5 insertions, 4 deletions
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 <uhd/exception.hpp>
#include <uhd/utils/byteswap.hpp>
#include <uhd/transport/udp_simple.hpp>
-
-#include "e300_i2c.hpp"
#include <cstring>
+#include <chrono>
+#include <thread>
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));
}