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/rfnoc | |
| 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/rfnoc')
| -rwxr-xr-x | host/lib/rfnoc/nocscript/gen_basic_funcs.py | 5 | ||||
| -rw-r--r-- | host/lib/rfnoc/source_block_ctrl_base.cpp | 4 | 
2 files changed, 6 insertions, 3 deletions
diff --git a/host/lib/rfnoc/nocscript/gen_basic_funcs.py b/host/lib/rfnoc/nocscript/gen_basic_funcs.py index cd024af5c..fec6b04ad 100755 --- a/host/lib/rfnoc/nocscript/gen_basic_funcs.py +++ b/host/lib/rfnoc/nocscript/gen_basic_funcs.py @@ -26,7 +26,8 @@ from mako.template import Template  #  INCLUDE_LIST = """  #include <boost/math/special_functions/round.hpp> -#include <boost/thread/thread.hpp> +#include <chrono> +#include <thread>  """  FUNCTION_LIST = """  CATEGORY: Math Functions @@ -251,7 +252,7 @@ CATEGORY: Execution Control  BOOL SLEEP(DOUBLE)  {      int ms = ${args[0]} / 1000; -    boost::this_thread::sleep(boost::posix_time::milliseconds(ms)); +    std::this_thread::sleep_for(std::chrono::milliseconds(ms));      ${RETURN}(true);  }  """ diff --git a/host/lib/rfnoc/source_block_ctrl_base.cpp b/host/lib/rfnoc/source_block_ctrl_base.cpp index d71905a1f..5ede899cb 100644 --- a/host/lib/rfnoc/source_block_ctrl_base.cpp +++ b/host/lib/rfnoc/source_block_ctrl_base.cpp @@ -9,6 +9,8 @@  #include <uhd/utils/log.hpp>  #include <uhd/rfnoc/constants.hpp>  #include <uhdlib/rfnoc/utils.hpp> +#include <chrono> +#include <thread>  using namespace uhd;  using namespace uhd::rfnoc; @@ -103,7 +105,7 @@ void source_block_ctrl_base::configure_flow_control_out(      //to flush is more than enough time.      //TODO: Enhancement. We should get feedback from the FPGA about when the source_flow_control      //      module is done flushing. -    boost::this_thread::sleep(boost::posix_time::milliseconds(1)); +    std::this_thread::sleep_for(std::chrono::milliseconds(1));      //Resize the FC window.      //Precondition: No data can be buffered upstream.  | 
