[Zion] Move ProcessManager to map as well.

This commit is contained in:
Drew Galbraith 2023-11-16 22:17:11 -08:00
parent 6e227e1cf6
commit aa2d80b557
3 changed files with 11 additions and 15 deletions

View file

@ -14,11 +14,8 @@ class ProcessManager {
void InsertProcess(const glcr::RefPtr<Process>& proc);
Process& FromId(uint64_t id);
void DumpProcessStates();
private:
// TODO: This should be a hashmap.
glcr::Vector<glcr::RefPtr<Process>> proc_list_;
glcr::HashMap<uint64_t, glcr::RefPtr<Process>> proc_map_;
};
extern ProcessManager* gProcMan;