aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-04-10 22:26:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-04-10 22:26:48 +0200
commitb20358ac28feb93d8196d7a6106aa77ca8592908 (patch)
treeab4e2667eb0fc9b03a77b42fe9a2a8bd6efea5b3
parentc5ddbfe33759dd80447c45513a05a4755797b05a (diff)
downloaddabmod-b20358ac28feb93d8196d7a6106aa77ca8592908.tar.gz
dabmod-b20358ac28feb93d8196d7a6106aa77ca8592908.tar.bz2
dabmod-b20358ac28feb93d8196d7a6106aa77ca8592908.zip
Replace boost thread in UHD.cpp
-rw-r--r--src/output/UHD.cpp4
-rw-r--r--src/output/UHD.h3
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);
};