From c965bc54982d6b90ae91edd3bb1103a8d356e59a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 22 Dec 2025 12:21:08 +0100 Subject: feat: kernel: New Vettable API, remove IsAcceptable concept. Signed-off-by: Amlal El Mahrouss --- src/kernel/KernelKit/UserProcessScheduler.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/kernel/KernelKit/UserProcessScheduler.h') diff --git a/src/kernel/KernelKit/UserProcessScheduler.h b/src/kernel/KernelKit/UserProcessScheduler.h index 9a679c87..08788ba3 100644 --- a/src/kernel/KernelKit/UserProcessScheduler.h +++ b/src/kernel/KernelKit/UserProcessScheduler.h @@ -32,7 +32,7 @@ class UserProcessHelper; /// @name UserProcess /// @brief UserProcess class, holds information about the running process/thread. /***********************************************************************************/ -class UserProcess { +class UserProcess final { public: UserProcess(); ~UserProcess(); @@ -40,6 +40,12 @@ class UserProcess { public: NE_COPY_DEFAULT(UserProcess) + using TypeRef = UserProcess&; + using ConstType = const UserProcess&; + using TypePtr = UserProcess*; + + NE_VETTABLE; + public: Char Name[kSchedNameLen] = {"UserProcess"}; ProcessSubsystem SubSystem{ProcessSubsystem::kProcessSubsystemUser}; @@ -159,11 +165,6 @@ class UserProcess { friend UserProcessHelper; }; -template <> -struct Vettable final { - static constexpr BOOL kValue = YES; -}; - using UserProcessArray = Array; using UserProcessRef = Ref; -- cgit v1.2.3