Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
realtime.h
Go to the documentation of this file.
1#pragma once
2
3namespace mm::core {
4
7 bool schedFifo = false;
8 bool memLocked = false;
9 bool cpuPinned = false;
10};
11
22inline constexpr int kRtThreadPriority = 80;
23
68RtSetupResult setRealtimePriority(int cpuAffinity = -1);
69
70} // namespace mm::core
Definition http_server.h:25
RtSetupResult setRealtimePriority(int cpuAffinity)
Prepares the calling thread for real-time execution.
Definition realtime.cc:13
constexpr int kRtThreadPriority
Priority requested for the real-time cyclic thread.
Definition realtime.h:22
Outcome of setRealtimePriority() — which of the three best-effort steps took.
Definition realtime.h:6
bool schedFifo
SCHED_FIFO acquired (false on Windows / on failure).
Definition realtime.h:7
bool memLocked
mlockall succeeded (Linux only; false elsewhere).
Definition realtime.h:8
bool cpuPinned
Affinity applied (Linux only; false if unrequested or failed).
Definition realtime.h:9