diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-26 09:30:48 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-30 17:10:26 -0700 |
commit | 0303f1ed558b21e40f80c388b096432b4bf6e883 (patch) | |
tree | 05afcc4d2401bb86f9e38e3b04ec5b07e9268302 /host/lib/types | |
parent | fc67052345373c6d5c1b62064a9f9ef6f888e3ff (diff) | |
download | uhd-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/types')
-rw-r--r-- | host/lib/types/serial.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/types/serial.cpp b/host/lib/types/serial.cpp index 381bb2181..24da51e7f 100644 --- a/host/lib/types/serial.cpp +++ b/host/lib/types/serial.cpp @@ -6,8 +6,9 @@ // #include <uhd/types/serial.hpp> -#include <boost/thread.hpp> //for sleeping #include <boost/assign/list_of.hpp> +#include <chrono> +#include <thread> using namespace uhd; @@ -43,7 +44,7 @@ void i2c_iface::write_eeprom( //write a byte at a time, its easy that way byte_vector_t cmd = boost::assign::list_of(offset+i)(bytes[i]); this->write_i2c(addr, cmd); - boost::this_thread::sleep(boost::posix_time::milliseconds(10)); //worst case write + std::this_thread::sleep_for(std::chrono::milliseconds(10)); //worst case write } } @@ -104,7 +105,7 @@ struct eeprom16_impl : i2c_iface uint16_t offset_i = offset+i; byte_vector_t cmd = boost::assign::list_of(offset_i >> 8)(offset_i & 0xff)(bytes[i]); this->write_i2c(addr, cmd); - boost::this_thread::sleep(boost::posix_time::milliseconds(10)); //worst case write + std::this_thread::sleep_for(std::chrono::milliseconds(10)); //worst case write } } }; |