|
@@ -14,6 +14,8 @@ class TestApp1 : public DKApplication
|
14
|
14
|
public:
|
15
|
15
|
void OnInitialize(void) override
|
16
|
16
|
{
|
|
17
|
+ DKLog("%s", __PRETTY_FUNCTION__);
|
|
18
|
+
|
17
|
19
|
DKLog("---- SystemPath ----");
|
18
|
20
|
DKLog("SystemRoot: %ls", (const wchar_t*)DefaultPath(SystemPath::SystemRoot));
|
19
|
21
|
DKLog("AppRoot: %ls", (const wchar_t*)DefaultPath(SystemPath::AppRoot));
|
|
@@ -33,6 +35,7 @@ public:
|
33
|
35
|
|
34
|
36
|
thread = DKThread::Create(DKFunction([this]()
|
35
|
37
|
{
|
|
38
|
+ DKLog("Running new thread!");
|
36
|
39
|
this->EventLoop()->Post(DKFunction([&]()
|
37
|
40
|
{
|
38
|
41
|
DKLog("test1");
|
|
@@ -51,6 +54,8 @@ public:
|
51
|
54
|
}
|
52
|
55
|
void OnTerminate(void) override
|
53
|
56
|
{
|
|
57
|
+ DKLog("%s", __PRETTY_FUNCTION__);
|
|
58
|
+ DKLog("Waiting for worker thread!");
|
54
|
59
|
thread->WaitTerminate();
|
55
|
60
|
}
|
56
|
61
|
};
|