Thred priorities on no-PREEMPT_RT (Ubunutu)
This commit is contained in:
+5
-1
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user