MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / OnThreadTerminated

Method OnThreadTerminated

Source/Client/NM_Engine/ThreadManagerHelper.cpp:163–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void 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
182std::size_t CThreadManager::GetThreadFuncSize(LPBYTE lpFunc)
183{

Callers 1

ThreadTerminateWatcherFunction · 0.80

Calls 1

IsRoutineCompletedMethod · 0.80

Tested by

no test coverage detected