-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcessManager.h
More file actions
executable file
·44 lines (28 loc) · 991 Bytes
/
ProcessManager.h
File metadata and controls
executable file
·44 lines (28 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2006-12 HumaNature Studios Inc.
#ifndef __PROCESSMANAGER_H__
#define __PROCESSMANAGER_H__
#include "ProcessTypes.h"
namespace core {
class Event;
class ProcessManager
: public Singleton<ProcessManager>
{
public:
bool mReportProcesses;
ProcessManager();
~ProcessManager();
void update(float deltaSeconds);
void initialize();
void finalize();
protected:
ProcessList mRunningProcesses;
ProcessList mDeadProcesses;
// TODO - pull these up to a common list helper class?
static void addProcessToList(Process* process, ProcessList& processList);
static void removeProcessFromList(Process* process, ProcessList& processList);
void addProcess(Process* process);
void removeProcess(Process* process);
friend class Process;
};
} // namespace core
#endif // __PROCESSMANAGER_H__