Thred priorities on no-PREEMPT_RT (Ubunutu)

This commit is contained in:
Robin E. R. Davies
2024-11-14 16:15:32 -05:00
parent a52a7a2a9a
commit c01f0351f0
14 changed files with 261 additions and 109 deletions
+5 -1
View File
@@ -44,10 +44,11 @@
#include <signal.h>
#include <semaphore.h>
#include "SchedulerPriority.hpp"
#include <systemd/sd-daemon.h>
using namespace pipedal;
using namespace pipedal;
#ifdef __ARM_ARCH_ISA_A64
#define AARCH64
@@ -244,6 +245,9 @@ int main(int argc, char *argv[])
std::shared_ptr<WebServer> server;
try
{
// (web server threads inherit the main thread priority)
SetThreadPriority(SchedulerPriority::WebServerThread);
auto const address = boost::asio::ip::make_address(configuration.GetSocketServerAddress());
port = static_cast<uint16_t>(configuration.GetSocketServerPort());