mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 03:19:18 +00:00
Added GetProcessByID and GetThreadByID
This commit is contained in:
@ -267,6 +267,7 @@ namespace Tasking
|
||||
void SignalShutdown();
|
||||
void RevertProcessCreation(PCB *Process);
|
||||
void RevertThreadCreation(TCB *Thread);
|
||||
|
||||
long GetUsage(int Core)
|
||||
{
|
||||
if (IdleProcess)
|
||||
@ -274,6 +275,7 @@ namespace Tasking
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void KillThread(TCB *tcb, int Code)
|
||||
{
|
||||
tcb->Status = TaskStatus::Terminated;
|
||||
@ -298,6 +300,10 @@ namespace Tasking
|
||||
*/
|
||||
TCB *GetCurrentThread();
|
||||
|
||||
PCB *GetProcessByID(UPID ID);
|
||||
|
||||
TCB *GetThreadByID(UTID ID);
|
||||
|
||||
/** @brief Wait for process to terminate */
|
||||
void WaitForProcess(PCB *pcb);
|
||||
|
||||
|
Reference in New Issue
Block a user