#pragma once #include #include #include "object/process.h" class ProcessManager { public: // Initializes the ProcessManager // and stores it in the global variable. static void Init(); void InsertProcess(const glcr::RefPtr& proc); Process& FromId(uint64_t id); void DumpProcessStates(); private: // TODO: This should be a hashmap. glcr::Vector> proc_list_; }; extern ProcessManager* gProcMan;