aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 11:26:57 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 11:26:57 +0200
commite48df9cb5ec9e48cd836ec227127f42c5cc99aa1 (patch)
treefc54e01b5397c8c4017170f685e34b2270e2f880 /src/OutputUHD.cpp
parentbab9d654f028a214e6f3abe8ade1c1da002d25ff (diff)
downloaddabmod-e48df9cb5ec9e48cd836ec227127f42c5cc99aa1.tar.gz
dabmod-e48df9cb5ec9e48cd836ec227127f42c5cc99aa1.tar.bz2
dabmod-e48df9cb5ec9e48cd836ec227127f42c5cc99aa1.zip
Set SCHED_RR prio for all data processing threads
This includes Modulator, FIR Filter and UHD worker
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index a49b659..dff0fd2 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -45,6 +45,7 @@
#include <time.h>
#include <errno.h>
#include <unistd.h>
+#include <pthread.h>
using namespace std;
@@ -595,6 +596,11 @@ void OutputUHD::check_gps()
void UHDWorker::process_errhandler()
{
+ // Set thread priority to realtime
+ if (int ret = set_realtime_prio(1)) {
+ etiLog.level(error) << "Could not set priority for UHD worker:" << ret;
+ }
+
process();
uwd->running = false;
etiLog.level(warn) << "UHD worker terminated";