libcosmos
Linux C++ System Programming Library
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cosmos::FifoSchedulerSettings Class Reference

FIFO Scheduling Policy Settings. More...

#include <Scheduler.hxx>

+ Inheritance diagram for cosmos::FifoSchedulerSettings:

Additional Inherited Members

- Public Member Functions inherited from cosmos::RealTimeSchedulerSettings
 RealTimeSchedulerSettings (const SchedulerPolicy policy)
 
void setPriority (const int priority)
 
int priority () const
 
int minPriority () const
 
int maxPriority () const
 
- Public Member Functions inherited from cosmos::SchedulerSettings
 SchedulerSettings (const SchedulerPolicy policy)
 
SchedulerPolicy policy () const
 
void apply (ProcessID pid) const
 Apply the current scheduler settings to the given process.
 
- Protected Member Functions inherited from cosmos::RealTimeSchedulerSettings
void fillStruct (struct sched_attr &attr) const override
 Fill the given low level sched_attr struct with the current settings.
 
- Protected Member Functions inherited from cosmos::SchedulerSettings
- Protected Attributes inherited from cosmos::RealTimeSchedulerSettings
int m_priority = 0
 
- Protected Attributes inherited from cosmos::SchedulerSettings
SchedulerPolicy m_policy = SchedulerPolicy::INVALID
 

Detailed Description

FIFO Scheduling Policy Settings.

FIFO realtime scheduling means that a process will only be preempted with another process with higher priority is available. If multiple processes share the same (highest) priority then one of them is selected for running and it is only preempted by another thread with the same priority if the running thread * becomes blocked.

Definition at line 159 of file Scheduler.hxx.

Constructor & Destructor Documentation

◆ FifoSchedulerSettings()

cosmos::FifoSchedulerSettings::FifoSchedulerSettings ( )
inline

Definition at line 163 of file Scheduler.hxx.

163 :
164 RealTimeSchedulerSettings{SchedulerPolicy::FIFO}
165 {}

The documentation for this class was generated from the following file: