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/rfnoc/nocscript/gen_basic_funcs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'host/lib/rfnoc/nocscript') 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 -#include +#include +#include """ 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); } """ -- cgit v1.2.3