Searched refs:safeIncr (Results 1 – 1 of 1) sorted by relevance
477 static int safeIncr(int &var, int amt) { in safeIncr() function495 safeIncr(gThreadsStarted, 1); in run()498 safeIncr(gThreadsInMiddle, 1); in run()501 safeIncr(gThreadsDone, 1); in run()532 while (safeIncr(gThreadsStarted, 0) != TESTMUTEX_THREAD_COUNT) { in TestMutex()550 while (safeIncr(gThreadsInMiddle, 0) != TESTMUTEX_THREAD_COUNT) { in TestMutex()563 while (safeIncr(gThreadsDone, 0) != TESTMUTEX_THREAD_COUNT) { in TestMutex()