Remove setting nice value inside recv thread

This commit is contained in:
2020-05-06 16:53:54 +02:00
parent 1db5b2560e
commit 225f8569be
-9
View File
@@ -2,10 +2,6 @@
#include "jungfrau.hpp"
#include <iostream>
#include <UdpReceiver.hpp>
#include <sys/resource.h>
#include <sys/resource.h>
#include <syscall.h>
using namespace std;
@@ -64,11 +60,6 @@ void UdpRecvModule::receive_thread(const uint16_t udp_port)
{
try {
pid_t tid;
tid = syscall(SYS_gettid);
int ret = setpriority(PRIO_PROCESS, tid, -20);
if (ret == -1) throw runtime_error("cannot set nice");
UdpReceiver udp_receiver;
udp_receiver.bind(udp_port);