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:
Drew Galbraith 2023-05-29 23:35:44 -07:00
parent b58186265e
commit 7fe6c24aa5
7 changed files with 66 additions and 23 deletions

View file

@ -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();