Refactor task scheduler

This commit is contained in:
EnderIce2
2024-03-01 22:56:50 +02:00
parent 66ec562751
commit df457e8097
5 changed files with 472 additions and 477 deletions

View File

@ -228,7 +228,7 @@ namespace Tasking
if (Parent)
Parent->Children.push_back(this);
ctx->ProcessList.push_back(this);
ctx->PushProcess(this);
}
PCB::~PCB()
@ -240,9 +240,7 @@ namespace Tasking
debug("Removing from process list");
/* Remove us from the process list so we
don't get scheduled anymore */
ctx->ProcessList.erase(std::find(ctx->ProcessList.begin(),
ctx->ProcessList.end(),
this));
ctx->PopProcess(this);
debug("Freeing signals");
delete this->Signals;