NUMA++ 0.11.0
Loading...
Searching...
No Matches
scheduler.hpp File Reference

Contains scheduler declarations. More...

#include <iosfwd>
#include <system_error>
#include <variant>
#include <sched.h>

Go to the source code of this file.

Classes

class  numapp::IdleScheduler
 Represents SCHED_IDLE scheduler policy. More...
 
class  numapp::StaticScheduler
 Static priority scheduler (real-time). More...
 
class  numapp::DynamicScheduler
 Normal non-realtime scheduler that use dynamic priority (nice value). More...
 
class  numapp::Scheduler
 A sum-type of all supported schedulers. More...
 

Namespaces

namespace  numapp
 

Typedefs

using numapp::SchedulerVariant = std::variant<DynamicScheduler, StaticScheduler, IdleScheduler>
 Variant of possible schedulers.
 

Functions

std::ostream & numapp::operator<< (std::ostream &os, StaticScheduler::Policy const &policy)
 Formats policy and inserts it to os.
 
std::ostream & numapp::operator<< (std::ostream &os, SchedulerVariant const &scheduler)
 Formats scheduler and inserts it to os.
 
Apply Scheduler to Specified Thread

Applies scheduler to specified thread.

std::error_code numapp::Apply (pid_t thread, IdleScheduler const &scheduler) noexcept
 Apply idle scheduler to specified thread.
 
std::error_code numapp::Apply (pid_t thread, DynamicScheduler const &scheduler) noexcept
 Apply dynamic scheduler to specified thread.
 
std::error_code numapp::Apply (pid_t thread, StaticScheduler const &scheduler) noexcept
 Apply static scheduler to specified thread.
 
std::error_code numapp::Apply (pid_t thread, Scheduler const &scheduler) noexcept
 Apply variadic scheduler to specified thread.
 
Apply Scheduler to Current Thread

Applies specified scheduler to current thread.

std::error_code numapp::thisThread::Apply (IdleScheduler const &scheduler) noexcept
 Apply idle scheduler to this thread.
 
std::error_code numapp::thisThread::Apply (DynamicScheduler const &scheduler) noexcept
 Apply dynamic scheduler to this thread.
 
std::error_code numapp::thisThread::Apply (StaticScheduler const &scheduler) noexcept
 Apply static scheduler to this thread.
 
std::error_code numapp::thisThread::Apply (Scheduler const &scheduler) noexcept
 Apply variadic scheduler to this thread.
 

Detailed Description

Contains scheduler declarations.

Definition in file scheduler.hpp.