Implement GetIdle function in Custom scheduler

This commit is contained in:
EnderIce2
2024-03-02 00:16:18 +02:00
parent df457e8097
commit 525a102f20
2 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,11 @@ namespace Tasking::Scheduler
assert(!"PopProcess not implemented");
}
virtual std::pair<PCB *, TCB *> GetIdle()
{
assert(!"GetIdle not implemented");
}
Base(Task *_ctx)
: ctx(_ctx) {}
@ -121,6 +126,7 @@ namespace Tasking::Scheduler
void Yield() final;
void PushProcess(PCB *pcb) final;
void PopProcess(PCB *pcb) final;
std::pair<PCB *, TCB *> GetIdle() final;
void OneShot(int TimeSlice);