summaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
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";