set nice values for non RT processes (#20812)

* set nice values for non RT processes

* builds

* fix qcom build

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
Adeeb Shihadeh
2021-05-04 22:00:11 -07:00
committed by GitHub
parent bea9cc14d3
commit ec414e2eb1
6 changed files with 17 additions and 5 deletions
+5
View File
@@ -1,3 +1,6 @@
#include <sys/time.h>
#include <sys/resource.h>
#include "locationd.h"
using namespace EKFS;
@@ -376,6 +379,8 @@ int Localizer::locationd_thread() {
}
int main() {
setpriority(PRIO_PROCESS, 0, -20);
Localizer localizer;
return localizer.locationd_thread();
}