From 60c66816d0a35ee3115e3856b980d2812f888ffb Mon Sep 17 00:00:00 2001 From: Ed Gonzalez Date: Tue, 21 Oct 2014 10:35:43 -0500 Subject: [PATCH] Make sched_waveform thread SCHED_FIFO - 25. --- DSP_API/SmartSDR_Interface/sched_waveform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DSP_API/SmartSDR_Interface/sched_waveform.c b/DSP_API/SmartSDR_Interface/sched_waveform.c index 9d47bc9..43e6534 100644 --- a/DSP_API/SmartSDR_Interface/sched_waveform.c +++ b/DSP_API/SmartSDR_Interface/sched_waveform.c @@ -694,6 +694,10 @@ void sched_waveform_Init(void) sem_init(&sched_waveform_sem, 0, 0); pthread_create(&_waveform_thread, NULL, &_sched_waveform_thread, NULL); + + struct sched_param fifo_param; + fifo_param.sched_priority = 25; + pthread_setschedparam(_waveform_thread, SCHED_FIFO, &fifo_param); } void sched_waveformThreadExit()