summaryrefslogtreecommitdiffhomepage
path: root/dev/zka/src/UserProcessTeam.cxx
blob: bb5726f7e95ea167695c69534d277b4fd2950609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* -------------------------------------------

	Copyright ZKA Technologies.

------------------------------------------- */

/***********************************************************************************/
/// @file UserProcessTeam.cxx
/// @brief UserProcess teams implementation.
/***********************************************************************************/

#include <KernelKit/UserProcessScheduler.hxx>

namespace Kernel
{
	/// @brief UserProcess list array getter.
	/// @return The list of process to schedule.
	Array<UserProcess, kSchedProcessLimitPerTeam>& UserProcessTeam::AsArray()
	{
		return mProcessList;
	}

	/// @brief Get team ID.
	/// @return The team's ID.
	ProcessID& UserProcessTeam::Id() noexcept
	{
		return mTeamId;
	}

	/// @brief Current process getter.
	/// @return The current process header.
	Ref<UserProcess>& UserProcessTeam::AsRef()
	{
		return mCurrentProcess;
	}
} // namespace Kernel

// last rev 05-03-24