summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authoramlal <amlal@el-mahrouss-logic.com>2024-03-08 12:35:05 +0000
committeramlal <amlal@el-mahrouss-logic.com>2024-03-08 12:43:36 +0000
commit6f5eddc17785607e1cd5e8245d576874f1939beb (patch)
treedbc1f113be4e90b0de8de6916c7bd5084f6f604b /Private/Source
parent842d35cdd8511adf379c4ccb52010b9b71e0757f (diff)
HCR-14: Fixes and improvements.
Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/ProcessManager.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Private/Source/ProcessManager.cxx b/Private/Source/ProcessManager.cxx
index bb952186..056eac5c 100644
--- a/Private/Source/ProcessManager.cxx
+++ b/Private/Source/ProcessManager.cxx
@@ -206,14 +206,14 @@ SizeT ProcessManager::Run() noexcept {
unwrapped_process.PTime = 0;
// set the current process.
- m_CurrentProcess = unwrapped_process;
+ mTeam.AsRef() = unwrapped_process;
// tell helper to find a core to schedule on.
- ProcessHelper::Switch(m_CurrentProcess.Leak().StackFrame,
- m_CurrentProcess.Leak().ProcessId);
+ ProcessHelper::Switch(mTeam.AsRef().Leak().StackFrame,
+ mTeam.AsRef().Leak().ProcessId);
} else {
// otherwise increment the P-time.
- ++m_CurrentProcess.Leak().PTime;
+ ++mTeam.AsRef().Leak().PTime;
}
}
@@ -225,7 +225,7 @@ Ref<ProcessManager> ProcessManager::Shared() {
return {ref};
}
-Ref<Process> &ProcessManager::GetCurrent() { return m_CurrentProcess; }
+Ref<Process> &ProcessManager::GetCurrent() { return mTeam.AsRef(); }
PID &ProcessHelper::GetCurrentPID() {
kcout << "ProcessHelper::GetCurrentPID: Leaking ProcessId...\r\n";