diff --git a/rtlsdr_wsprd.c b/rtlsdr_wsprd.c index 7b573de..bb3fd4c 100644 --- a/rtlsdr_wsprd.c +++ b/rtlsdr_wsprd.c @@ -638,12 +638,14 @@ int main(int argc, char** argv) { printf("Wait for time sync (start in %d sec)\n\n", uwait/1000000); /* Prepare a low priority param for the decoder thread */ - struct sched_param p; + struct sched_param param; pthread_attr_init(&dec.tattr); pthread_attr_setschedpolicy(&dec.tattr, SCHED_RR); - pthread_attr_getschedparam(&dec.tattr, &p); - p.sched_priority = 40; - pthread_attr_setschedparam(&dec.tattr, &p); + pthread_attr_getschedparam(&dec.tattr, ¶m); + param.sched_priority = 90; // = sched_get_priority_min(); + pthread_attr_setschedparam(&dec.tattr, ¶m); + //int res=0; + //printf("get: %d\n", res); /* Create a thread and stuff for separate decoding Info : https://computing.llnl.gov/tutorials/pthreads/