mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Revise PID and TID generation to align with standards
This commit is contained in:
@ -58,7 +58,7 @@ namespace Tasking::Scheduler
|
||||
assert(!"GetProcessByID not implemented");
|
||||
}
|
||||
|
||||
virtual TCB *GetThreadByID(TID ID)
|
||||
virtual TCB *GetThreadByID(TID ID, PCB* Parent)
|
||||
{
|
||||
assert(!"GetThreadByID not implemented");
|
||||
}
|
||||
@ -119,7 +119,7 @@ namespace Tasking::Scheduler
|
||||
bool RemoveThread(TCB *tcb) final;
|
||||
bool RemoveProcess(PCB *pcb) final;
|
||||
PCB *GetProcessByID(TID ID) final;
|
||||
TCB *GetThreadByID(TID ID) final;
|
||||
TCB *GetThreadByID(TID ID, PCB* Parent) final;
|
||||
std::list<PCB *> &GetProcessList() final;
|
||||
void StartIdleProcess() final;
|
||||
void StartScheduler() final;
|
||||
|
@ -474,7 +474,6 @@ namespace Tasking
|
||||
NewLock(TaskingLock);
|
||||
|
||||
PID NextPID = 0;
|
||||
TID NextTID = 0;
|
||||
|
||||
PCB *KernelProcess = nullptr;
|
||||
|
||||
@ -546,7 +545,7 @@ namespace Tasking
|
||||
|
||||
PCB *GetProcessByID(PID ID);
|
||||
|
||||
TCB *GetThreadByID(TID ID);
|
||||
TCB *GetThreadByID(TID ID, PCB* Parent);
|
||||
|
||||
/** Wait for process to terminate */
|
||||
void WaitForProcess(PCB *pcb);
|
||||
|
Reference in New Issue
Block a user