Add a ProcessManager class to store Process objects.
Trying out a new method for exposing global objects directly via a variable.
This commit is contained in:
parent
b58186265e
commit
7fe6c24aa5
7 changed files with 66 additions and 23 deletions
|
|
@ -21,10 +21,6 @@ void Preempt();
|
|||
// Used when a thread blocks or exits.
|
||||
void Yield();
|
||||
|
||||
// Scheduler will take ownership
|
||||
// of the created process.
|
||||
void InsertProcess(Process* proc);
|
||||
|
||||
void EnqueueThread(Thread* thread);
|
||||
|
||||
Process& CurrentProcess();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue