summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
};