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/examples/network_relay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/examples/network_relay.cpp') diff --git a/host/examples/network_relay.cpp b/host/examples/network_relay.cpp index f450326d6..8f7e180da 100644 --- a/host/examples/network_relay.cpp +++ b/host/examples/network_relay.cpp @@ -16,6 +16,8 @@ #include #include #include +#include +#include namespace po = boost::program_options; namespace asio = boost::asio; @@ -205,7 +207,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << "Press Ctrl + C to stop streaming..." << std::endl; while (not stop_signal_called){ - boost::this_thread::sleep(boost::posix_time::milliseconds(100)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); } } -- cgit v1.2.3