| 161 | } |
| 162 | |
| 163 | void CThreadManager::OnThreadTerminated(DWORD dwThreadId) // TODO: Implement routine |
| 164 | { |
| 165 | // DEBUG_LOG(LL_CRI, "Thread: %u terminated!", dwThreadId); |
| 166 | |
| 167 | if (!dwThreadId) |
| 168 | return; |
| 169 | |
| 170 | auto pThread = GetThreadFromId(dwThreadId); |
| 171 | if (!IS_VALID_SMART_PTR(pThread)) |
| 172 | return; |
| 173 | |
| 174 | auto bIsCompleted = pThread->IsRoutineCompleted(); |
| 175 | DEBUG_LOG(LL_CRI, "Thread: %u terminated. Complete status: %d", bIsCompleted); |
| 176 | |
| 177 | // if is termporary thread and bIsCompleted is not completed |
| 178 | // or if it s not temporary thread |
| 179 | // ... |
| 180 | } |
| 181 | |
| 182 | std::size_t CThreadManager::GetThreadFuncSize(LPBYTE lpFunc) |
| 183 | { |
no test coverage detected