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

Function loopv

source/src/clientgame.cpp:667–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665 // process command sleeps
666 sleepssemaphore->wait();
667 loopv(sleeps)
668 {
669 if(lastmillis - sleeps[i].millis >= sleeps[i].wait)
670 {
671 char *cmd = sleeps[i].cmd;
672 sleeps[i].cmd = NULL;
673 sleeps.remove(i--);
674 sleepssemaphore->post();
675 execute(cmd);
676 delete[] cmd;
677 sleepssemaphore->wait();
678 }
679 }
680 sleepssemaphore->post();
681
682 syncentchanges();

Callers 14

duplicatenameFunction · 0.70
listignoredFunction · 0.70
clearignoredFunction · 0.70
listmutedFunction · 0.70
clearmutedFunction · 0.70
teaminfoFunction · 0.70
newbotentFunction · 0.70
freebotentFunction · 0.70
moveotherplayersFunction · 0.70
startmapFunction · 0.70
whoisFunction · 0.70
findcnFunction · 0.70

Calls 6

executeFunction · 0.85
postMethod · 0.80
waitMethod · 0.80
distMethod · 0.80
conoutfFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected