Browse Source

no message

Hongtae Kim 7 years ago
parent
commit
a8a9665f7b
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      TestApp1/TestApp1.cpp

+ 5
- 0
TestApp1/TestApp1.cpp View File

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