USER_PROCESS scheduler class. The main class which you call to schedule user processes.
More...
#include <UserProcessScheduler.h>
USER_PROCESS scheduler class. The main class which you call to schedule user processes.
◆ UserProcessScheduler()
Kernel::UserProcessScheduler::UserProcessScheduler |
( |
| ) |
|
|
explicitdefault |
◆ ~UserProcessScheduler()
Kernel::UserProcessScheduler::~UserProcessScheduler |
( |
| ) |
|
|
overridedefault |
◆ HasMP()
Bool Kernel::UserProcessScheduler::HasMP |
( |
| ) |
|
|
overridevirtual |
◆ IsKernel()
Bool Kernel::UserProcessScheduler::IsKernel |
( |
| ) |
|
|
overridevirtual |
◆ IsUser()
Bool Kernel::UserProcessScheduler::IsUser |
( |
| ) |
|
|
overridevirtual |
◆ operator bool()
Kernel::UserProcessScheduler::operator bool |
( |
| ) |
|
this checks if any process is on the team.
◆ operator!()
Bool Kernel::UserProcessScheduler::operator! |
( |
| ) |
|
this checks if no process is on the team.
◆ Remove()
Void Kernel::UserProcessScheduler::Remove |
( |
ProcessID | process_id | ) |
|
Remove process from the team.
- Parameters
-
process_id | process slot inside team. |
- Return values
-
true | process was removed. |
false | process doesn't exist in team. |
◆ Run()
SizeT Kernel::UserProcessScheduler::Run |
( |
| ) |
|
|
noexcept |
Run User scheduler object.
- Returns
- USER_PROCESS count executed within a team.
we store this guy to tell the scheduler how many things we have scheduled.
Check if the process needs to be run.
Increase the usage time of the process.
◆ Spawn()
Add process to team.
- Parameters
-
process | the process Ref class. |
- Returns
- the process index inside the team.
- Todo
- File Tree allocation and dispose methods (amlal)
◆ SwitchTeam()
Switches the current team.
- Parameters
-
team | the new team to switch to. |
- Return values
-
true | team was switched. |
false | team was not switched. |
◆ The()
Retrieves the singleton of the process scheduler.
◆ TheCurrentProcess()
Gets current running process.
- Returns
◆ TheCurrentTeam()
Gets the current scheduled team.
- Returns
◆ UserProcessHelper
◆ mTeam
The documentation for this class was generated from the following files: