From 034f85b398dc325dd9dec8974f98e5c4ec81b67c Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 13 Jul 2018 18:30:30 +0200 Subject: [PATCH] Reduce thread priority --- src/EncodingHelper.cpp | 2 +- src/MJPEGStreamServer.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EncodingHelper.cpp b/src/EncodingHelper.cpp index ea5733c..0824f08 100644 --- a/src/EncodingHelper.cpp +++ b/src/EncodingHelper.cpp @@ -30,7 +30,7 @@ OSMessageQueue encodeQueue __attribute__((section(".data"))); OSMessage encodeQueueMessages[ENCODE_QUEUE_MESSAGE_COUNT] __attribute__((section(".data"))); void EncodingHelper::StartAsyncThread() { - int32_t priority = 17; + int32_t priority = 31; this->pThread = CThread::create(DoAsyncThread, this, CThread::eAttributeAffCore0, priority,0x40000); this->pThread->resumeThread(); } diff --git a/src/MJPEGStreamServer.hpp b/src/MJPEGStreamServer.hpp index 9505df5..0a168fe 100644 --- a/src/MJPEGStreamServer.hpp +++ b/src/MJPEGStreamServer.hpp @@ -60,7 +60,7 @@ public: static int32_t getPriority() { - return 10; + return 31; } static volatile bool isInstanceConnected() {