Searched defs:cThreads (Results 1 - 19 of 19) sorted by relevance

/vbox/src/VBox/Runtime/testcase/
H A DtstRTReqPool.cpp92 uint32_t cThreads = RTReqPoolGetStat(hPool, RTREQPOOLSTAT_THREADS); local
93 RTTestIValue("thread-count-1", cThreads, RTTESTUNIT_OCCURRENCES);
94 RTTESTI_CHECK(cThreads >= cMinThreads);
95 RTTESTI_CHECK(cThreads <= cMaxThreads);
111 RTTESTI_CHECK(cThreads2 < cThreads || cThreads2 <= cMinThreads);
H A DtstRTMemPool.cpp249 static void tst4Sub(uint32_t cThreads) argument
251 RTTestISubF("Serialization - %u threads", cThreads);
256 PRTTHREAD pahThreads = (PRTTHREAD)RTMemPoolAlloc(hMemPool, cThreads * sizeof(RTTHREAD));
261 for (uint32_t i = 0; i < cThreads; i++)
264 RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "tst4-%u/%u", i, cThreads);
272 for (uint32_t i = 0; i < cThreads; i++)
277 for (uint32_t i = 0; i < cThreads; i++)
H A DtstRTR0SemMutexDriver.cpp99 * @param cThreads The number of threads.
104 unsigned cThreads, unsigned cSecs, PTSTRTR0SEMMUTEXREQ pReq, const char *pszTest)
106 RTTestSubF(g_hTest, "%s - %u threads", pszTest, cThreads);
108 RTTESTI_CHECK_RET(cThreads <= RT_ELEMENTS(ahThreads), false);
130 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++)
134 for (unsigned i = 0; i < cThreads; i++)
163 for (unsigned i = 0; i < cThreads; i++)
103 tstDoThreadedTest(TSTRTR0SEMMUTEX enmSetup, TSTRTR0SEMMUTEX enmDo, TSTRTR0SEMMUTEX enmCleanup, unsigned cThreads, unsigned cSecs, PTSTRTR0SEMMUTEXREQ pReq, const char *pszTest) argument
H A DtstRTSemXRoads.cpp94 static void tstTraffic(unsigned cThreads, unsigned cSecs) argument
96 RTTestSubF(g_hTest, "Traffic - %u threads per direction, %u sec", cThreads, cSecs);
109 AssertRelease(RT_ELEMENTS(ahThreadsX) >= cThreads);
114 AssertRelease(RT_ELEMENTS(ahThreadsY) >= cThreads);
125 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++)
131 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++)
H A DtstRTMemCache.cpp256 static void tst3(uint32_t cThreads, uint32_t cbObject, int iMethod, uint32_t cSecs) argument
258 RTTestISubF("Benchmark - %u threads, %u bytes, %u secs, %s", cThreads, cbObject, cSecs,
272 RTTESTI_CHECK_RETV(cThreads < RT_ELEMENTS(aThreads));
275 for (uint32_t i = 0; i < cThreads; i++)
295 for (uint32_t i = 0; i < cThreads; i++)
303 for (uint32_t i = 0; i < cThreads; i++)
315 static void tst3AllMethods(uint32_t cThreads, uint32_t cbObject, uint32_t cSecs)
317 tst3(cThreads, cbObject, 0, cSecs);
318 tst3(cThreads, cbObject, 1, cSecs);
H A DtstSemMutex.cpp113 static int Test1(unsigned cThreads, unsigned cSeconds, bool fYield, bool fQuiet) argument
119 AssertRelease(cThreads <= RT_ELEMENTS(g_au64));
139 for (i = 0; i < cThreads; i++)
149 cThreads, cSeconds, g_fYield ? "yielding" : "no yielding");
159 for (i = 0; i < cThreads; i++)
177 for (i = 1; i < cThreads; i++)
180 uint64_t Normal = Total / cThreads;
182 for (i = 0; i < cThreads; i++)
194 cThreads,
223 for (unsigned cThreads
[all...]
H A DtstRTCoreDump.h110 uint64_t cThreads; /* Number of threads (count of pThreadInfoHead list) */ member in struct:VBOXPROCESS
H A DtstRTCritSect.cpp130 uint32_t cThreads; member in struct:THREADTEST2ARGS
189 static int Test1(unsigned cThreads) argument
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; iThrea
352 Test2(unsigned cThreads, unsigned cIterations, unsigned cCheckLoops) argument
[all...]
H A DtstRTCritSectRw.cpp216 static void Test4(unsigned cThreads, unsigned cSeconds, unsigned uWritePercent, bool fYield, bool fQuiet) argument
221 AssertRelease(cThreads <= RT_ELEMENTS(acIterations));
224 cThreads, cSeconds, uWritePercent, fYield ? "" : "non-");
243 for (i = 0; i < cThreads; i++)
264 for (i = 0; i < cThreads; i++)
279 for (i = 1; i < cThreads; i++)
282 uint64_t cItrNormal = cItrTotal / cThreads;
285 for (i = 0; i < cThreads; i++)
302 // cThreads,
468 for (unsigned cThreads
[all...]
H A DtstRTSemRW.cpp215 static void Test4(unsigned cThreads, unsigned cSeconds, unsigned uWritePercent, bool fYield, bool fQuiet) argument
220 AssertRelease(cThreads <= RT_ELEMENTS(acIterations));
223 cThreads, cSeconds, uWritePercent, fYield ? "" : "non-");
242 for (i = 0; i < cThreads; i++)
263 for (i = 0; i < cThreads; i++)
279 for (i = 1; i < cThreads; i++)
282 uint64_t cItrNormal = cItrTotal / cThreads;
285 for (i = 0; i < cThreads; i++)
302 // cThreads,
481 for (unsigned cThreads
[all...]
H A DtstHandleTable.cpp371 static int tstHandleTableTest2(uint32_t uBase, uint32_t cMax, uint32_t cThreads) argument
376 RTPrintf("tstHandleTable: TESTING %u threads: uBase=%u, cMax=%u\n", cThreads, uBase, cMax);
391 PTSTHTTEST2ARGS paThread = (PTSTHTTEST2ARGS)alloca(sizeof(*paThread) * cThreads);
392 for (uint32_t i = 0; i < cThreads; i++)
397 paThread[i].cMax = cMax / cThreads;
399 for (uint32_t i = 0; i < cThreads; i++)
415 uint32_t cRunning = cThreads;
418 if (cRunning != cThreads)
421 for (uint32_t i = 0; i < cThreads; i++)
462 uint32_t cThreads local
[all...]
H A DtstRTLockValidator.cpp272 * @param cThreads The number of threads to start.
275 static int testStartThreads(uint32_t cThreads, PFNRTTHREAD pfnThread) argument
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) argument
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;
454 testDd1(uint32_t cThreads, uint32_t cSecs) argument
510 testDd2(uint32_t cThreads, uint32_t cSecs) argument
557 testDd3(uint32_t cThreads, uint32_t cSecs) argument
613 testDd4(uint32_t cThreads, uint32_t cSecs) argument
653 testDd5(uint32_t cThreads, uint32_t cSecs) argument
706 testDd6(uint32_t cThreads, uint32_t cSecs) argument
760 testDd7(uint32_t cThreads, uint32_t cSecs) argument
[all...]
/vbox/src/VBox/Runtime/r0drv/os2/
H A Dsemevent-r0drv-os2.cpp111 ULONG cThreads; local
112 KernWakeup((ULONG)pThis, WAKEUP_DATA | WAKEUP_BOOST, &cThreads, (ULONG)VERR_SEM_DESTROYED);
141 ULONG cThreads; local
142 KernWakeup((ULONG)pThis, WAKEUP_DATA | WAKEUP_ONE, &cThreads, VINF_SUCCESS);
143 if (RT_UNLIKELY(!cThreads))
H A Dsemeventmulti-r0drv-os2.cpp111 ULONG cThreads; local
112 KernWakeup((ULONG)pThis, WAKEUP_DATA | WAKEUP_BOOST, &cThreads, (ULONG)VERR_SEM_DESTROYED);
144 ULONG cThreads; local
145 KernWakeup((ULONG)pThis, WAKEUP_DATA, &cThreads, VINF_SUCCESS);
/vbox/src/VBox/ValidationKit/utils/misc/
H A Dloadgenerator.cpp169 uint32_t cThreads = 1; local
202 cThreads = ValueUnion.u64;
203 if (cThreads == 0 || cThreads > RT_ELEMENTS(s_aThreads))
205 cThreads, RT_ELEMENTS(s_aThreads) - 1);
325 if (cCpus * cThreads > RT_ELEMENTS(s_aThreads))
327 cThreads, RT_ELEMENTS(s_aThreads) - 1, cCpus);
328 cThreads *= cCpus;
353 for (unsigned i = 1; i < cThreads; i++)
375 for (unsigned i = 1; i < cThreads;
[all...]
/vbox/src/VBox/Runtime/r3/solaris/
H A Dcoredumper-solaris.h116 uint64_t cThreads; /**< Number of threads (count of pThreadInfoHead list) */ member in struct:RTSOLCOREPROCESS
H A Dcoredumper-solaris.cpp931 pSolProc->cThreads = cInfo;
1266 uint64_t cThreads; local
1267 return rtCoreDumperForEachThread(pSolCore, &cThreads, resumeThread);
/vbox/src/VBox/Main/webservice/
H A Dvboxweb.cpp486 * @param cThreads out: total no. of SOAP threads running
489 SOAP_SOCKET get(size_t &cIdleThreads, size_t &cThreads) argument
502 cThreads = m_llAllThreads.size();
555 size_t cIdleThreads = 0, cThreads = 0; local
556 m_soap->socket = m_pQ->get(cIdleThreads, cThreads);
565 cThreads);
/vbox/src/VBox/VMM/VMMAll/
H A DCPUMAllMsrs.cpp1549 uint16_t cThreads = cCores; /** @todo hyper-threading. */ local
1550 *puValue = RT_MAKE_U32(cThreads, cCores);

Completed in 75 milliseconds