From 33ac395072f0145b6e80e12deae978a5e0432f08 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 23 Mar 2023 15:42:14 +0100 Subject: [PATCH] use RR sched instead of FIFO for Linux RT --- src/fsfw/osal/linux/PosixThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsfw/osal/linux/PosixThread.cpp b/src/fsfw/osal/linux/PosixThread.cpp index 811d58e2..9851876d 100644 --- a/src/fsfw/osal/linux/PosixThread.cpp +++ b/src/fsfw/osal/linux/PosixThread.cpp @@ -179,8 +179,8 @@ void PosixThread::createTask(void* (*fnc_)(void*), void* arg_) { #error "Please define FSFW_USE_REALTIME_FOR_LINUX with either 0 or 1" #endif #if FSFW_USE_REALTIME_FOR_LINUX == 1 - // FIFO -> This needs root privileges for the process - status = pthread_attr_setschedpolicy(&attributes, SCHED_FIFO); + // RR -> This needs root privileges for the process + status = pthread_attr_setschedpolicy(&attributes, SCHED_RR); if (status != 0) { utility::printUnixErrorGeneric(CLASS_NAME, "createTask", "pthread_attr_setschedpolicy"); } -- 2.43.0