mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 23:44:31 +00:00
Implement GetIdle function in Custom scheduler
This commit is contained in:
parent
df457e8097
commit
525a102f20
@ -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);
|
||||
|
||||
|
@ -252,6 +252,11 @@ namespace Tasking::Scheduler
|
||||
this->ProcessList.remove(pcb);
|
||||
}
|
||||
|
||||
std::pair<PCB *, TCB *> Custom::GetIdle()
|
||||
{
|
||||
return std::make_pair(IdleProcess, IdleThread);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
nsa void Custom::OneShot(int TimeSlice)
|
||||
|
Loading…
x
Reference in New Issue
Block a user