summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources/ProcessScheduler.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-06-24 14:33:40 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-06-24 14:34:18 +0200
commit9784f940cf71aef91ccbeb1a11651a83a3eff213 (patch)
treebf0294e5ad8161372aaa27cacbfba4eb3e81eda0 /Kernel/Sources/ProcessScheduler.cxx
parent7738550a55d6fa79447d0298c53fe6320a3135b2 (diff)
IMP: UIAccessibilty class, work in progress Core CoreGraphics (GPU/FB
SDK). REFACTOR: Moved Builtins to Modules/ Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources/ProcessScheduler.cxx')
-rw-r--r--Kernel/Sources/ProcessScheduler.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/Sources/ProcessScheduler.cxx b/Kernel/Sources/ProcessScheduler.cxx
index aae69386..315dc07a 100644
--- a/Kernel/Sources/ProcessScheduler.cxx
+++ b/Kernel/Sources/ProcessScheduler.cxx
@@ -64,7 +64,7 @@ namespace NewOS
if (this->FreeMemory < 1)
{
DbgLastError() = kErrorHeapOutOfMemory;
-
+
/* we're going out of memory */
this->Crash();
@@ -208,7 +208,7 @@ namespace NewOS
ke_new_ke_heap(sizeof(HAL::StackFrame), true, false));
MUST_PASS(process.Leak().StackFrame);
-
+
process.Leak().Status = ProcessStatus::kRunning;
process.Leak().ProcessId = (mTeam.AsArray().Count() - 1);
@@ -237,7 +237,7 @@ namespace NewOS
SizeT ProcessScheduler::Run() noexcept
{
SizeT process_index = 0; //! we store this guy to tell the scheduler how many
- //! things we have scheduled.
+ //! things we have scheduled.
for (; process_index < mTeam.AsArray().Count(); ++process_index)
{
@@ -256,7 +256,7 @@ namespace NewOS
// tell helper to find a core to schedule on.
ProcessHelper::Switch(mTeam.AsRef().Leak().StackFrame,
mTeam.AsRef().Leak().ProcessId);
-
+
kcout << unwrapped_process.Name << ": process switched.\r";
}
else
@@ -332,7 +332,7 @@ namespace NewOS
SizeT ProcessHelper::StartScheduling()
{
auto& process_ref = ProcessScheduler::The().Leak();
- SizeT ret = process_ref.Run();
+ SizeT ret = process_ref.Run();
return ret;
}