diff --git a/sf-buffer/src/sf_buffer.cpp b/sf-buffer/src/sf_buffer.cpp index 4c18c0c..eebfac0 100644 --- a/sf-buffer/src/sf_buffer.cpp +++ b/sf-buffer/src/sf_buffer.cpp @@ -7,6 +7,10 @@ #include "jungfrau.hpp" #include "BufferUdpReceiver.hpp" +#include +#include + + using namespace std; using namespace core_buffer; @@ -26,6 +30,11 @@ int main (int argc, char *argv[]) { exit(-1); } + pid_t tid; + tid = syscall(SYS_gettid); + int ret = setpriority(PRIO_PROCESS, tid, -20); + if (ret == -1) throw runtime_error("cannot set nice"); + string device_name = string(argv[1]); int udp_port = atoi(argv[2]); string root_folder = string(argv[3]);