diff options
Diffstat (limited to 'host/lib/utils/tasks.cpp')
-rw-r--r-- | host/lib/utils/tasks.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/host/lib/utils/tasks.cpp b/host/lib/utils/tasks.cpp index 888a5a8f1..658c361a9 100644 --- a/host/lib/utils/tasks.cpp +++ b/host/lib/utils/tasks.cpp @@ -5,18 +5,19 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#include <uhd/utils/tasks.hpp> +#include <uhd/exception.hpp> +#include <uhd/utils/log.hpp> #include <uhd/utils/msg_task.hpp> +#include <uhd/utils/tasks.hpp> #include <uhd/utils/thread.hpp> -#include <uhd/utils/log.hpp> -#include <uhd/exception.hpp> -#include <boost/thread/thread.hpp> #include <boost/thread/barrier.hpp> +#include <boost/thread/thread.hpp> +#include <atomic> #include <exception> +#include <functional> #include <iostream> -#include <vector> #include <thread> -#include <atomic> +#include <vector> using namespace uhd; @@ -88,7 +89,7 @@ public: msg_task_impl(const task_fcn_type &task_fcn): _spawn_barrier(2) { - (void)_thread_group.create_thread(boost::bind(&msg_task_impl::task_loop, this, task_fcn)); + (void)_thread_group.create_thread(std::bind(&msg_task_impl::task_loop, this, task_fcn)); _spawn_barrier.wait(); } |