[zion/glacier] Move RefPtr to glacier.
This commit is contained in:
parent
8bcb574677
commit
e1af79b975
26 changed files with 130 additions and 106 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <glacier/memory/ref_ptr.h>
|
||||
|
||||
#include "lib/linked_list.h"
|
||||
#include "lib/ref_ptr.h"
|
||||
#include "object/process.h"
|
||||
|
||||
class ProcessManager {
|
||||
|
|
@ -10,14 +11,14 @@ class ProcessManager {
|
|||
// and stores it in the global variable.
|
||||
static void Init();
|
||||
|
||||
void InsertProcess(const RefPtr<Process>& proc);
|
||||
void InsertProcess(const glcr::RefPtr<Process>& proc);
|
||||
Process& FromId(uint64_t id);
|
||||
|
||||
void DumpProcessStates();
|
||||
|
||||
private:
|
||||
// TODO: This should be a hashmap.
|
||||
LinkedList<RefPtr<Process>> proc_list_;
|
||||
LinkedList<glcr::RefPtr<Process>> proc_list_;
|
||||
};
|
||||
|
||||
extern ProcessManager* gProcMan;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue