summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources/ProcessTeam.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-05-21 09:10:57 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-05-21 09:10:57 +0200
commit0c211cca4d7a4d836f4cb685345e44f3f2814fd1 (patch)
treef08901e67cdabe025d8ad40c18c62b27b32c5517 /Kernel/Sources/ProcessTeam.cxx
parentf022a2afeb7af04ce3ef256ef617d19f07d84d9a (diff)
MHR-23: New CoreSystem calls and refactors.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Kernel/Sources/ProcessTeam.cxx')
-rw-r--r--Kernel/Sources/ProcessTeam.cxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/Kernel/Sources/ProcessTeam.cxx b/Kernel/Sources/ProcessTeam.cxx
new file mode 100644
index 00000000..7e311399
--- /dev/null
+++ b/Kernel/Sources/ProcessTeam.cxx
@@ -0,0 +1,31 @@
+/* -------------------------------------------
+
+ Copyright SoftwareLabs
+
+------------------------------------------- */
+
+/***********************************************************************************/
+/// @file ProcessTeam.cxx
+/// @brief Process teams implementation.
+/***********************************************************************************/
+
+#include <KernelKit/ProcessScheduler.hpp>
+
+namespace NewOS
+{
+ /// @brief Process list array getter.
+ /// @return The list of process to schedule.
+ MutableArray<Ref<ProcessHeader>>& ProcessTeam::AsArray()
+ {
+ return mProcessList;
+ }
+
+ /// @brief Current process getter.
+ /// @return The current process header.
+ Ref<ProcessHeader>& ProcessTeam::AsRef()
+ {
+ return mCurrentProcess;
+ }
+} // namespace NewOS
+
+// last rev 05-03-24