Strategy interface for scheduling algorithms.
More...
#include <i_scheduling_policy.h>
|
| virtual | ~ISchedulingPolicy ()=default |
| virtual std::string_view | name () const noexcept=0 |
| | Human-readable policy name.
|
| virtual ProcessId | selectNext (const std::vector< std::reference_wrapper< const PCB > > &readyQueue, const IClock &clock) const =0 |
| | Selects the next process ID from the ready queue.
|
| virtual bool | shouldPreempt (const PCB &running, const PCB &candidate, const IClock &clock) const =0 |
| | Decides whether the current running process should be preempted.
|
Strategy interface for scheduling algorithms.
Definition at line 18 of file i_scheduling_policy.h.
◆ ~ISchedulingPolicy()
| virtual contur::ISchedulingPolicy::~ISchedulingPolicy |
( |
| ) |
|
|
virtualdefault |
◆ name()
| virtual std::string_view contur::ISchedulingPolicy::name |
( |
| ) |
const |
|
nodiscardpure virtualnoexcept |
◆ selectNext()
| virtual ProcessId contur::ISchedulingPolicy::selectNext |
( |
const std::vector< std::reference_wrapper< const PCB > > & | readyQueue, |
|
|
const IClock & | clock ) const |
|
nodiscardpure virtual |
◆ shouldPreempt()
| virtual bool contur::ISchedulingPolicy::shouldPreempt |
( |
const PCB & | running, |
|
|
const PCB & | candidate, |
|
|
const IClock & | clock ) const |
|
nodiscardpure virtual |
The documentation for this class was generated from the following file: