MCPcopy Create free account
hub / github.com/diasurgical/devilution / nthread_cleanup

Function nthread_cleanup

Source/nthread.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void nthread_cleanup()
195{
196 nthread_should_run = FALSE;
197 gdwTurnsInTransit = 0;
198 gdwNormalMsgSize = 0;
199 gdwLargestMsgSize = 0;
200 if (sghThread != NULL && glpNThreadId != SDL_GetThreadID(NULL)) {
201 if (!sgbThreadIsRunning)
202 sgMemCrit.Leave();
203 SDL_WaitThread(sghThread, NULL);
204 sghThread = NULL;
205 }
206}
207
208void nthread_ignore_mutex(BOOL bStart)
209{

Callers 1

NetCloseFunction · 0.85

Calls 1

LeaveMethod · 0.80

Tested by

no test coverage detected