Refactor filesystem & stl code

This commit is contained in:
EnderIce2
2024-05-18 07:42:01 +03:00
parent 77a291d08b
commit 6801475243
186 changed files with 15784 additions and 9746 deletions

View File

@ -185,7 +185,7 @@ namespace Tasking::Scheduler
}
}
std::list<PCB *> &Custom::GetProcessList()
std::vector<PCB *> &Custom::GetProcessList()
{
return ProcessList;
}
@ -246,7 +246,16 @@ namespace Tasking::Scheduler
void Custom::PopProcess(PCB *pcb)
{
this->ProcessList.remove(pcb);
auto it = std::find(this->ProcessList.begin(),
this->ProcessList.end(), pcb);
if (it == this->ProcessList.end())
{
debug("Process %d not found in the list", pcb->ID);
return;
}
this->ProcessList.erase(it);
}
std::pair<PCB *, TCB *> Custom::GetIdle()