diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-04-10 22:26:48 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-04-10 22:26:48 +0200 |
commit | b20358ac28feb93d8196d7a6106aa77ca8592908 (patch) | |
tree | ab4e2667eb0fc9b03a77b42fe9a2a8bd6efea5b3 | |
parent | c5ddbfe33759dd80447c45513a05a4755797b05a (diff) | |
download | dabmod-b20358ac28feb93d8196d7a6106aa77ca8592908.tar.gz dabmod-b20358ac28feb93d8196d7a6106aa77ca8592908.tar.bz2 dabmod-b20358ac28feb93d8196d7a6106aa77ca8592908.zip |
Replace boost thread in UHD.cpp
-rw-r--r-- | src/output/UHD.cpp | 4 | ||||
-rw-r--r-- | src/output/UHD.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp index 04137cc..711e218 100644 --- a/src/output/UHD.cpp +++ b/src/output/UHD.cpp @@ -36,7 +36,7 @@ #include "RemoteControl.h" #include "Utils.h" -#include <boost/thread/future.hpp> +#include <thread> #include <uhd/version.hpp> // 3.11.0.0 introduces the API breaking change, where @@ -231,7 +231,7 @@ UHD::UHD(SDRDeviceConfig& config) : m_tx_stream = m_usrp->get_tx_stream(stream_args); m_running.store(true); - m_async_rx_thread = boost::thread(&UHD::print_async_thread, this); + m_async_rx_thread = std::thread(&UHD::print_async_thread, this); MDEBUG("OutputUHD:UHD ready.\n"); } diff --git a/src/output/UHD.h b/src/output/UHD.h index 0e9911c..9aec7ce 100644 --- a/src/output/UHD.h +++ b/src/output/UHD.h @@ -43,6 +43,7 @@ DESCRIPTION: #include <memory> #include <string> #include <atomic> +#include <thread> #include "Log.h" #include "output/SDR.h" @@ -115,7 +116,7 @@ class UHD : public Output::SDRDevice // Poll asynchronous metadata from UHD std::atomic<bool> m_running; - boost::thread m_async_rx_thread; + std::thread m_async_rx_thread; void stop_threads(void); void print_async_thread(void); }; |