removing thread prioritization for writer, streamer and tcp threads

This commit is contained in:
Dhanya Maliakal
2017-05-16 14:45:48 +02:00
parent a182ca3660
commit 001d6415bf
5 changed files with 21 additions and 12 deletions

View File

@ -151,8 +151,9 @@ void DataStreamer::SetGeneralData(GeneralData* g) {
int DataStreamer::SetThreadPriority(int priority) {
struct sched_param param;
param.sched_priority = priority;
if (pthread_setschedparam(thread, SCHED_RR, &param) == EPERM)
if (pthread_setschedparam(thread, SCHED_FIFO, &param) == EPERM)
return FAIL;
FILE_LOG(logINFO) << "Streamer Thread Priority set to " << priority;
return OK;
}