Lines Matching defs:cThreads

272  * @param   cThreads            The number of threads to start.
275 static int testStartThreads(uint32_t cThreads, PFNRTTHREAD pfnThread)
283 for (uint32_t i = 0; i < cThreads; i++)
321 static void testIt(uint32_t cThreads, uint32_t cSecs, bool fLoops, PFNRTTHREAD pfnThread, const char *pszName)
327 RTTestSubF(g_hTest, "%s, %u threads, %u secs", pszName, cThreads, cSecs);
329 RTTestSubF(g_hTest, "%s, %u threads, single pass", pszName, cThreads);
331 RTTEST_CHECK_RETV(g_hTest, RT_ELEMENTS(g_ahThreads) >= cThreads);
332 RTTEST_CHECK_RETV(g_hTest, RT_ELEMENTS(g_aCritSects) >= cThreads);
334 g_cThreads = cThreads;
337 for (uint32_t i = 0; i < cThreads; i++)
362 g_iDeadlockThread = (cThreads - 1 + cPasses) % cThreads;
368 int rc = testStartThreads(cThreads, pfnThread);
393 for (uint32_t i = 0; i < cThreads; i++)
454 static void testDd1(uint32_t cThreads, uint32_t cSecs)
456 testIt(cThreads, cSecs, false, testDd1Thread, "deadlock, critsect");
510 static void testDd2(uint32_t cThreads, uint32_t cSecs)
512 testIt(cThreads, cSecs, false, testDd2Thread, "deadlock, read-write");
557 static void testDd3(uint32_t cThreads, uint32_t cSecs)
559 testIt(cThreads, cSecs, true, testDd3Thread, "deadlock, read-write race");
613 static void testDd4(uint32_t cThreads, uint32_t cSecs)
615 testIt(cThreads, cSecs, true, testDd4Thread, "deadlock, read-write race v2");
653 static void testDd5(uint32_t cThreads, uint32_t cSecs)
655 testIt(cThreads, cSecs, false, testDd5Thread, "deadlock, mutex");
706 static void testDd6(uint32_t cThreads, uint32_t cSecs)
708 testIt(cThreads, cSecs, false, testDd6Thread, "deadlock, event");
760 static void testDd7(uint32_t cThreads, uint32_t cSecs)
762 testIt(cThreads, cSecs, false, testDd7Thread, "deadlock, event multi");