This commit is contained in:
Alex 2022-11-14 16:12:35 +02:00
parent 6d11b62fd8
commit 62ded83a9b
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 3 additions and 3 deletions

View File

@ -318,7 +318,7 @@ namespace Tasking
__no_stack_protector void Task::Schedule(CPU::x64::TrapFrame *Frame)
{
SmartCriticalSection(SchedulerLock);
if (StopSheduler)
if (StopScheduler)
{
warn("Scheduler stopped.");
return;

View File

@ -213,11 +213,11 @@ namespace Tasking
void Schedule(void *Frame);
void OnInterruptReceived(void *Frame);
#endif
bool StopSheduler = false;
bool StopScheduler = false;
public:
Vector<PCB *> GetProcessList() { return ListProcess; }
void Panic() { StopSheduler = true; }
void Panic() { StopScheduler = true; }
void Schedule();
long GetUsage(int Core) { return 100 - IdleProcess->Info.Usage[Core]; }
void KillThread(TCB *tcb, int Code)