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

Function loopv

source/src/autodownload.cpp:147–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 loopv(pckthreads) if(pckthreads[i]) SDL_WaitThread(pckthreads[i], &nop); // wait for all ping threads to finish
146 SDL_DestroyMutex(pckpinglog_lock);
147 loopv(pckservers)
148 {
149 pckserver *s = pckservers[i];
150 if(s->priority <= -1000) disabled++;
151 else if(s->resolved && s->ping) good++;
152 }
153 int bad = pckservers.length() - good - disabled;
154 cvecprintf(pckping_log, "csuccessfully pinged %d media server%s, %d failure%s, %d disabled\n", good, good == 1 ? "" : "s", bad, bad == 1 ? "" : "s", disabled);
155 }

Callers 4

addpckserverFunction · 0.70
getpckserverFunction · 0.70
pingallpckserversFunction · 0.70
requirepackageFunction · 0.70

Calls 10

behindpathFunction · 0.85
filtertextFunction · 0.85
openfileFunction · 0.85
pathFunction · 0.85
zipmanualreadFunction · 0.85
clientlogfFunction · 0.85
dlpackageFunction · 0.85
conoutfFunction · 0.70
removeMethod · 0.45
printfMethod · 0.45

Tested by

no test coverage detected