-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHostCtrl.h
64 lines (49 loc) · 1.65 KB
/
HostCtrl.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef HOST_CONTROL_H_INCLUDED
#define HOST_CONTROL_H_INCLUDED
#include "Common.h"
#include "HostContext.h"
#include "Assembly/AssemblyInfo.h"
#include <list>
class SHTaskManager;
class SHSyncManager;
class SHMemoryManager;
class SHThreadpoolManager;
class SHGCManager;
class SHIoCompletionManager;
class SHAssemblyManager;
class SHEventManager;
class SHPolicyManager;
#define THREAD_ABORT_TIMEOUT 10
#define APPDOMAIN_UNLOAD_TIMEOUT 10
class DHHostControl : public IHostControl {
private:
volatile LONG m_cRef;
ICLRRuntimeHost *m_pRuntimeHost;
ICLRControl *m_pRuntimeControl;
SHTaskManager* taskManager;
SHSyncManager* syncManager;
SHMemoryManager* memoryManager;
SHThreadpoolManager* threadpoolManager;
SHGCManager* gcManager;
SHIoCompletionManager* iocpManager;
SHAssemblyManager* assemblyManager;
SHEventManager* eventManager;
SHPolicyManager* policyManager;
HostContext* hostContext;
public:
DHHostControl(ICLRRuntimeHost *pRuntimeHost, const std::list<AssemblyInfo>& hostAssemblies);
~DHHostControl();
ICLRControl* GetCLRControl() { return m_pRuntimeControl; };
STDMETHODIMP_(VOID) ShuttingDown();
// IUnknown functions
STDMETHODIMP_(DWORD) AddRef();
STDMETHODIMP_(DWORD) Release();
STDMETHODIMP QueryInterface(const IID &riid, void **ppvObject);
// IHostControl functions
STDMETHODIMP GetHostManager(const IID &riid, void **ppObject);
STDMETHODIMP SetAppDomainManager(DWORD dwAppDomainID, IUnknown *pUnkAppDomainManager);
ISimpleHostDomainManager* GetDomainManagerForDefaultDomain();
IHostContext* GetHostContext();
bool SetupEscalationPolicy();
};
#endif //HOST_CONTROL_H_INCLUDED