summaryrefslogtreecommitdiffstats
path: root/src/output/UHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-04 11:15:31 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-04 11:15:31 +0100
commitb26fde93d8751f62d7ae64cd6b209181f4432c89 (patch)
tree971628cc42a880061f3622d0e6b8dcb5bf7485c0 /src/output/UHD.cpp
parent863c1eea672314d9a5834c740d151ef2b0130cf3 (diff)
downloaddabmod-b26fde93d8751f62d7ae64cd6b209181f4432c89.tar.gz
dabmod-b26fde93d8751f62d7ae64cd6b209181f4432c89.tar.bz2
dabmod-b26fde93d8751f62d7ae64cd6b209181f4432c89.zip
Properly start SDR and UHD threads
Diffstat (limited to 'src/output/UHD.cpp')
-rw-r--r--src/output/UHD.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp
index 3769c60..54ff6c2 100644
--- a/src/output/UHD.cpp
+++ b/src/output/UHD.cpp
@@ -239,6 +239,9 @@ UHD::UHD(
m_rx_stream = m_usrp->get_rx_stream(stream_args);
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);
+
MDEBUG("OutputUHD:UHD ready.\n");
}