diff options
Diffstat (limited to 'dev/Kernel/Sources/ProcessTeam.cxx')
| -rw-r--r-- | dev/Kernel/Sources/ProcessTeam.cxx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev/Kernel/Sources/ProcessTeam.cxx b/dev/Kernel/Sources/ProcessTeam.cxx new file mode 100644 index 00000000..81307d97 --- /dev/null +++ b/dev/Kernel/Sources/ProcessTeam.cxx @@ -0,0 +1,38 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +/***********************************************************************************/ +/// @file ProcessTeam.cxx +/// @brief Process teams implementation. +/***********************************************************************************/ + +#include <KernelKit/ProcessScheduler.hxx> + +namespace Kernel +{ + /// @brief Process list array getter. + /// @return The list of process to schedule. + MutableArray<Ref<PROCESS_HEADER_BLOCK>>& ProcessTeam::AsArray() + { + return mProcessList; + } + + /// @brief Get team ID. + /// @return The team's ID. + UInt64& ProcessTeam::Id() noexcept + { + return mTeamId; + } + + /// @brief Current process getter. + /// @return The current process header. + Ref<PROCESS_HEADER_BLOCK>& ProcessTeam::AsRef() + { + return mCurrentProcess; + } +} // namespace Kernel + +// last rev 05-03-24 |
