mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 03:19:18 +00:00
Added implementation of critical thread/process
This commit is contained in:
@ -60,6 +60,7 @@ namespace Tasking
|
||||
{
|
||||
TaskTrustLevel TrustLevel;
|
||||
Token UniqueToken;
|
||||
bool IsCritical;
|
||||
};
|
||||
|
||||
struct TaskInfo
|
||||
@ -117,6 +118,12 @@ namespace Tasking
|
||||
}
|
||||
|
||||
int GetExitCode() { return ExitCode; }
|
||||
|
||||
void SetCritical(bool critical)
|
||||
{
|
||||
trace("Setting criticality of thread %s to %s", Name, critical ? "true" : "false");
|
||||
Security.IsCritical = critical;
|
||||
}
|
||||
};
|
||||
|
||||
struct PCB
|
||||
|
Reference in New Issue
Block a user