From 99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 Jan 2025 11:52:02 +0100 Subject: T& Labs's ZKA, Multi-Processor Operating System. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/KernelKit/UserProcessScheduler.h | 32 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'dev/Kernel/KernelKit/UserProcessScheduler.h') diff --git a/dev/Kernel/KernelKit/UserProcessScheduler.h b/dev/Kernel/KernelKit/UserProcessScheduler.h index a1fbde5b..987cfb3f 100644 --- a/dev/Kernel/KernelKit/UserProcessScheduler.h +++ b/dev/Kernel/KernelKit/UserProcessScheduler.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ @@ -31,7 +31,7 @@ namespace Kernel //! @note Forward class declarations. class IDylibObject; - class UserThread; + class UserProcess; class UserProcessTeam; class UserProcessScheduler; class UserProcessHelper; @@ -142,16 +142,16 @@ namespace Kernel } }; - /// @name UserThread + /// @name UserProcess /// @brief User process class, holds information about the running process/thread. - class UserThread final + class UserProcess final { public: - explicit UserThread(); - ~UserThread(); + explicit UserProcess(); + ~UserProcess(); public: - ZKA_COPY_DEFAULT(UserThread); + ZKA_COPY_DEFAULT(UserProcess); public: Char Name[kProcessNameLen] = {"Process"}; @@ -261,20 +261,20 @@ namespace Kernel ZKA_COPY_DEFAULT(UserProcessTeam); - Array& AsArray(); - Ref& AsRef(); + Array& AsArray(); + Ref& AsRef(); ProcessID& Id() noexcept; public: - Array mProcessList; - Ref mCurrentProcess; + Array mProcessList; + Ref mCurrentProcess; ProcessID mTeamId{0}; ProcessID mProcessCount{0}; }; - typedef Array UserThreadArray; + typedef Array UserThreadArray; - using UserProcessRef = UserThread&; + using UserProcessRef = UserProcess&; /// @brief Process scheduler class. /// The main class which you call to schedule user processes. @@ -303,7 +303,7 @@ namespace Kernel const Bool HasMP() override; public: - Ref& GetCurrentProcess(); + Ref& GetCurrentProcess(); const SizeT Run() noexcept; public: @@ -314,14 +314,14 @@ namespace Kernel }; /* - * \brief UserThread helper class, which contains needed utilities for the scheduler. + * \brief UserProcess helper class, which contains needed utilities for the scheduler. */ class UserProcessHelper final { public: STATIC Bool Switch(VoidPtr image_ptr, UInt8* stack_ptr, HAL::StackFramePtr frame_ptr, const PID& new_pid); - STATIC Bool CanBeScheduled(const UserThread& process); + STATIC Bool CanBeScheduled(const UserProcess& process); STATIC ErrorOr TheCurrentPID(); STATIC SizeT StartScheduling(); }; -- cgit v1.2.3