Lines Matching refs:cThreads
130 uint32_t cThreads;
189 static int Test1(unsigned cThreads)
191 RTTestSubF(g_hTest, "Test #1 with %u thread", cThreads);
210 for (uint32_t iThread = 0; iThread < cThreads; iThread++)
231 while (u32Release < cThreads)
270 if ((*pArgs->pu32Release % pArgs->cThreads) != pArgs->iThread)
272 pArgs->iThread, i, *pArgs->pu32Release % pArgs->cThreads, *pArgs->pu32Release);
275 pArgs->iThread, i, *pArgs->pu32Release % pArgs->cThreads, *pArgs->pu32Release);
286 uint32_t u32Perfect = *pArgs->pu32Release / pArgs->cThreads;
287 for (int iThread = 0 ; iThread < (int)pArgs->cThreads; iThread++)
328 if (*pArgs->pu32Prev == pArgs->iThread && pArgs->cThreads > 1)
330 else if ((*pArgs->pu32Prev + 1) % pArgs->cThreads != pArgs->iThread)
352 static int Test2(unsigned cThreads, unsigned cIterations, unsigned cCheckLoops)
354 RTTestSubF(g_hTest, "Test #2 - cThreads=%u cIterations=%u cCheckLoops=%u", cThreads, cIterations, cCheckLoops);
373 PTHREADTEST2ARGS paArgs = (PTHREADTEST2ARGS)RTMemAllocZ(sizeof(THREADTEST2ARGS) * cThreads);
383 for (iThread = 0; iThread < cThreads; iThread++)
394 paArgs[iThread].cThreads = cThreads;
437 uint32_t u32Perfect = (u32Release + cThreads / 2) / cThreads;
438 for (iThread = 0; iThread < cThreads; iThread++)