summaryrefslogtreecommitdiffhomepage
path: root/Kernel/KernelKit/ProcessScheduler.hpp
diff options
context:
space:
mode:
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
{