summaryrefslogtreecommitdiffhomepage
path: root/Kernel/KernelKit/ProcessScheduler.hpp
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-05-23 07:53:50 +0000
committerAmlal <amlalelmahrouss@icloud.com>2024-05-23 07:53:50 +0000
commitf5081a8f9a8537ad5be5d639955cd1d0e68a9e1d (patch)
treec9305701aa2d4ee0235c85c67cd6633e5763ec21 /Kernel/KernelKit/ProcessScheduler.hpp
parentca675beb41dba8d7d16c5793b55d1672f38be3b4 (diff)
parent06b1a4bb12b4043b606d8bb0d55942d636c6833e (diff)
Merged in MHR-23 (pull request #13)
MHR-23
Diffstat (limited to 'Kernel/KernelKit/ProcessScheduler.hpp')
-rw-r--r--Kernel/KernelKit/ProcessScheduler.hpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/Kernel/KernelKit/ProcessScheduler.hpp b/Kernel/KernelKit/ProcessScheduler.hpp
index 243857ae..8670691f 100644
--- a/Kernel/KernelKit/ProcessScheduler.hpp
+++ b/Kernel/KernelKit/ProcessScheduler.hpp
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright SoftwareLabs
+ Copyright SoftwareLabs
------------------------------------------- */
@@ -252,31 +252,33 @@ namespace NewOS
{
return mTeam.AsArray().Count() > 0;
}
+
bool operator!()
{
return mTeam.AsArray().Count() == 0;
}
- ProcessTeam& CurrentTeam()
- {
- return mTeam;
- }
+ public:
+ ProcessTeam& CurrentTeam();
+ public:
SizeT Add(Ref<ProcessHeader>& headerRef);
bool Remove(SizeT headerIndex);
+ public:
Ref<ProcessHeader>& GetCurrent();
SizeT Run() noexcept;
- static Ref<ProcessScheduler> Shared();
+ public:
+ static Ref<ProcessScheduler&> Shared();
private:
ProcessTeam mTeam;
};
/*
- * Just a helper class, which contains some utilities for the scheduler.
- */
+ * Just a helper class, which contains some utilities for the scheduler.
+ */
class ProcessHelper final
{