MCPcopy Create free account
hub / github.com/assaultcube/AC / resolverinit

Function resolverinit

source/src/serverbrowser.cpp:65–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void resolverinit()
66{
67 resolvermutex = SDL_CreateMutex();
68 querycond = SDL_CreateCond();
69 resultcond = SDL_CreateCond();
70
71 SDL_LockMutex(resolvermutex);
72 loopi(RESOLVERTHREADS)
73 {
74 resolverthread &rt = resolverthreads.add();
75 rt.query = NULL;
76 rt.starttime = 0;
77 rt.thread = SDL_CreateThread(resolverloop, "ResolverThread", &rt);
78 }
79 SDL_UnlockMutex(resolvermutex);
80}
81
82void resolverstop(resolverthread &rt)
83{

Callers 3

resolverqueryFunction · 0.85
resolverwaitFunction · 0.85
refreshserversFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected