summaryrefslogtreecommitdiffstats
path: root/src/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index ab1866c..aafd6af 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -27,6 +27,8 @@
#include "Utils.h"
#include "GainControl.h"
+#include <sys/prctl.h>
+#include <pthread.h>
void printUsage(char* progName)
{
@@ -124,3 +126,8 @@ int set_realtime_prio(int prio)
return ret;
}
+void set_thread_name(const char *name)
+{
+ prctl(PR_SET_NAME,name,0,0,0);
+}
+