Make a new thread.
| 174 | |
| 175 | // Make a new thread. |
| 176 | void CreateNewThread(AppWindow* app) |
| 177 | { |
| 178 | DWORD threadId; |
| 179 | app->AddRef(); |
| 180 | HANDLE thread = CreateThread( |
| 181 | nullptr, 0, ThreadProc, reinterpret_cast<LPVOID>(app), |
| 182 | STACK_SIZE_PARAM_IS_A_RESERVATION, &threadId); |
| 183 | s_threads.insert(std::pair<DWORD, HANDLE>(threadId, thread)); |
| 184 | } |
| 185 | |
| 186 | // This function is the starting point for new threads. It will open a new app window. |
| 187 | static DWORD WINAPI ThreadProc(void* pvParam) |
no test coverage detected