2#include <numapp/numa.hpp>
8 std::cout <<
"NUMA not available";
12 Scheduler current = Scheduler::MakeFromActive();
16 std::cout <<
"Nice: " << sched.
GetNice() << std::endl;
20 std::variant<DynamicScheduler, StaticScheduler, IdleScheduler> variant = current.
Get();
Normal non-realtime scheduler that use dynamic priority (nice value).
int GetNice() const noexcept
Get dynamic nice value.
A sum-type of all supported schedulers.
SchedulerVariant const & Get() const noexcept
Get the underlying scheduler.
constexpr T GetScheduler() const
Get the held scheduler.
constexpr bool HoldsScheduler() const noexcept
Query the held scheduler.
bool NumaAvailable() noexcept
Query whether system has NUMA support.
Contains scheduler declarations.